結果
問題 | No.8044 April Sum of Odd |
ユーザー |
![]() |
提出日時 | 2020-07-09 09:19:16 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 390 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 21,748 KB |
最終ジャッジ日時 | 2024-10-06 09:09:33 |
合計ジャッジ時間 | 1,684 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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