mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 17:11:42 +03:00
21 lines
279 B
Plaintext
21 lines
279 B
Plaintext
/*
|
|
namespace: Compile
|
|
expectation: Pass
|
|
input_file:
|
|
- inputs/u32_3.in
|
|
- inputs/u32_5.in
|
|
- inputs/u32_6.in
|
|
*/
|
|
|
|
function main(x: u32) -> bool {
|
|
let d = x;
|
|
|
|
if x == 3 || x == 5 {
|
|
d += 1;
|
|
if x == 3 {
|
|
d += 2;
|
|
}
|
|
}
|
|
|
|
return d > x;
|
|
} |