結果
| 問題 | No.8044 April Sum of Odd |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2020-04-11 20:40:06 |
| 言語 | Python3 (3.15.2 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
TLE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 246 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,592 KB |
| 実行使用メモリ | 21,288 KB |
| 最終ジャッジ日時 | 2026-11-10 21:19:53 |
| 合計ジャッジ時間 | 6,586 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 1 TLE * 1 -- * 9 |
ソースコード
n, m = map(int, input().split())
a = list(map(int, input().split()))
l = 0
while l < n:
s = 0
r = l
while r < n and a[r] % 2:
s += a[r]
r += 1
if r - l >= m:
print(s)
l = r
else:
l += 1
hir355