結果
| 問題 | No.8044 April Sum of Odd |
| コンテスト | |
| ユーザー |
杉山新
|
| 提出日時 | 2020-07-09 09:19:16 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 390 bytes |
| 記録 | |
| コンパイル時間 | 59 ms |
| コンパイル使用メモリ | 15,232 KB |
| 実行使用メモリ | 21,932 KB |
| 最終ジャッジ日時 | 2026-09-11 01:12:34 |
| 合計ジャッジ時間 | 1,932 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
ソースコード
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 i % 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
杉山新