結果
| 問題 |
No.8044 April Sum of Odd
|
| コンテスト | |
| ユーザー |
るさ
|
| 提出日時 | 2019-04-01 21:40:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 93 ms / 2,000 ms |
| コード長 | 178 bytes |
| コンパイル時間 | 497 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 21,612 KB |
| 最終ジャッジ日時 | 2024-11-26 21:57:51 |
| 合計ジャッジ時間 | 1,803 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
ソースコード
n,m=map(int,input().split()) a=list(map(int,input().split())) cnt=0 s=0 for i in a: if i%2==0: if cnt>=m: print(s) cnt=0 s=0 else: cnt+=1 s+=i if cnt>=m: print(s)
るさ