2021-04-20 04:08:14 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
|
|
|
input_file:
|
2021-05-03 17:28:53 +03:00
|
|
|
- inputs/u32_3.in
|
|
|
|
- inputs/u32_5.in
|
2021-04-20 04:08:14 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
function main(x: u32) -> bool {
|
2022-05-03 05:43:46 +03:00
|
|
|
let b: u32 = 5u32;
|
2021-04-20 04:08:14 +03:00
|
|
|
|
2022-05-03 05:43:46 +03:00
|
|
|
if x == 3u32 {
|
|
|
|
b = 1u32;
|
2021-04-20 04:08:14 +03:00
|
|
|
} else {
|
2022-05-03 05:43:46 +03:00
|
|
|
b = 0u32;
|
2021-04-20 04:08:14 +03:00
|
|
|
}
|
|
|
|
|
2022-05-03 05:43:46 +03:00
|
|
|
if x == 3u32 {
|
|
|
|
return (b == 1u32);
|
2021-04-20 04:08:14 +03:00
|
|
|
} else {
|
2022-05-03 05:43:46 +03:00
|
|
|
return (b == 0u32);
|
2021-04-20 04:08:14 +03:00
|
|
|
}
|
|
|
|
}
|