結果
| 問題 |
No.8044 April Sum of Odd
|
| コンテスト | |
| ユーザー |
ibukiti
|
| 提出日時 | 2021-10-05 17:38:32 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,868 KB |
| 最終ジャッジ日時 | 2024-07-23 02:35:33 |
| 合計ジャッジ時間 | 1,618 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 8 WA * 2 |
ソースコード
n,m=map(int,input().split())
a=list(map(int,input().split()))
ans=0
tmp=0
for i in a:
if i%2!=0:
ans+=i
tmp+=1
elif i%2==0:
if tmp>=m:
print(ans)
ans=0
tmp=0
ibukiti