結果
| 問題 |
No.8044 April Sum of Odd
|
| コンテスト | |
| ユーザー |
杉山新
|
| 提出日時 | 2020-07-09 09:23:04 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 390 bytes |
| コンパイル時間 | 120 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,616 KB |
| 最終ジャッジ日時 | 2024-10-06 09:21:43 |
| 合計ジャッジ時間 | 1,390 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 8 WA * 2 |
ソースコード
N,M = map(int,input().split())
num_list = list(map(int,input().split()))
i=0
cnt=0
total=0
while i < len(num_list):
a = num_list[i]
if a % 2 == 0:
if cnt < M:
total=0
cnt=0
else:
print(total)
total=0
cnt=0
i+=1
continue
else:
cnt+=1
total+=a
i+=1
杉山新