結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
yas_yasyu
|
| 提出日時 | 2026-09-05 13:09:27 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 333 bytes |
| 記録 | |
| コンパイル時間 | 234 ms |
| コンパイル使用メモリ | 95,944 KB |
| 実行使用メモリ | 79,220 KB |
| 最終ジャッジ日時 | 2026-09-05 13:10:16 |
| 合計ジャッジ時間 | 3,989 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 33 |
ソースコード
from itertools import accumulate
T = list(map(lambda x: int(x), input().split()))
acc = list(accumulate(T))
ALL = 6000
print(acc)
is_finish = False
for i in range(7):
if T[i] == -1 or is_finish or ALL - acc[i] < 0:
print(-1)
is_finish = True
continue
print(ALL - acc[i] if ALL - acc[i] >= 0 else 0)
yas_yasyu