2021-05-05 18:29:44 +03:00
|
|
|
/*
|
|
|
|
namespace: Compile
|
|
|
|
expectation: Pass
|
2022-05-06 01:38:55 +03:00
|
|
|
input_file: inputs/dummy.in
|
2021-05-05 18:29:44 +03:00
|
|
|
*/
|
|
|
|
|
2020-06-23 04:28:30 +03:00
|
|
|
function iteration() -> u32 {
|
2022-05-03 05:43:46 +03:00
|
|
|
let a: u32 = 0u32;
|
2020-06-23 04:28:30 +03:00
|
|
|
|
2022-05-03 05:43:46 +03:00
|
|
|
for i: u32 in 0u32..10u32 {
|
|
|
|
a = a + 1u32;
|
2020-07-17 22:59:18 +03:00
|
|
|
}
|
2020-06-23 04:28:30 +03:00
|
|
|
|
2021-04-14 23:59:07 +03:00
|
|
|
return a;
|
2020-06-23 04:28:30 +03:00
|
|
|
}
|
|
|
|
|
2021-05-13 16:56:17 +03:00
|
|
|
function main(y: bool) -> bool {
|
2022-05-03 05:43:46 +03:00
|
|
|
const total: u32 = iteration() + iteration();
|
2020-07-30 22:10:33 +03:00
|
|
|
|
2022-05-03 05:43:46 +03:00
|
|
|
return (total == 20u32) == y;
|
2021-05-05 18:29:44 +03:00
|
|
|
}
|