結果
問題 | No.3044 April Sum of Odd |
ユーザー | 👑 tatt61880 |
提出日時 | 2019-04-01 21:44:50 |
言語 | Kuin (KuinC++ v.2021.9.17) |
結果 |
WA
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 1,988 ms |
コンパイル使用メモリ | 155,244 KB |
実行使用メモリ | 19,332 KB |
最終ジャッジ日時 | 2023-10-14 15:37:06 |
合計ジャッジ時間 | 3,670 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,352 KB |
testcase_01 | AC | 1 ms
4,348 KB |
testcase_02 | AC | 1 ms
4,356 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 58 ms
19,332 KB |
testcase_11 | AC | 38 ms
18,068 KB |
testcase_12 | AC | 1 ms
4,348 KB |
ソースコード
func main() var _: [][]char :: cui@input().split(" ") var N: int :: _[0].toInt(&) var M: int :: _[1].toInt(&) do _ :: cui@input().split(" ") var sum: int for i(0, N - 1) var a: int :: _[i].toInt(&) if(a % 2 = 0) if(sum <> 0) do cui@print("\{sum}\n") end if do sum :: 0 else do sum :+ a end if end for if(sum <> 0) do cui@print("\{sum}\n") end if end func