結果
問題 |
No.8044 April Sum of Odd
|
ユーザー |
|
提出日時 | 2019-04-01 22:37:06 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 241 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 21,612 KB |
最終ジャッジ日時 | 2024-11-27 03:31:01 |
合計ジャッジ時間 | 1,062 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 3 WA * 7 |
ソースコード
N, M = map(int, input().split()) A = list(map(int, input().split())) s = 0 j = 0 for i in A: if i % 2 == 0: if j > 0: print(s) s = 0 j = 0 else: s += i j += 1 if j > 0: print(s)