結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-06 20:59:23 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 66 ms / 2,000 ms |
| + 336µs | |
| コード長 | 316 bytes |
| 記録 | |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 96,072 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-09-06 20:59:28 |
| 合計ジャッジ時間 | 4,675 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
def imos(x):
y=[]
c=0
for i in x:
c+=i
y.append(c)
return y
t=list(map(int,input().split()))
unsolveable=False
for e,i in enumerate(imos(t)):
if t[e]==-1:
unsolveable=True
if 6000-i<0 and not unsolveable:
print(-1)
else:
if unsolveable:
print(-1)
else:
print(6000-i)