結果
| 問題 |
No.8044 April Sum of Odd
|
| コンテスト | |
| ユーザー |
iNoma87976671
|
| 提出日時 | 2019-04-01 22:21:14 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 311 bytes |
| コンパイル時間 | 270 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,524 KB |
| 最終ジャッジ日時 | 2024-11-27 03:15:44 |
| 合計ジャッジ時間 | 1,280 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 7 |
ソースコード
N,M = map(int,input().split())
s = list(map(int,input().split()))
ans = []
sum = 0
for A in s:
if A %2 == 1:
sum += A
isOdd = True
else:
ans.append(sum)
sum = 0
isOdd = False
if isOdd:
ans.append(sum)
sum = 0
for i in ans:
if i != 0:
print(i)
iNoma87976671