結果
| 問題 |
No.8044 April Sum of Odd
|
| コンテスト | |
| ユーザー |
iNoma87976671
|
| 提出日時 | 2019-04-01 22:17:21 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 294 bytes |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 21,616 KB |
| 最終ジャッジ日時 | 2024-11-27 03:09:00 |
| 合計ジャッジ時間 | 1,248 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 8 |
ソースコード
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
else:
ans.append(sum)
sum = 0
if A == s[-1]:
ans.append(sum)
sum = 0
for i in ans:
if i != 0:
print(i)
iNoma87976671