結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-09 18:09:48 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 2,000 ms |
| + 162µs | |
| コード長 | 336 bytes |
| 記録 | |
| コンパイル時間 | 53 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-09-09 18:09:53 |
| 合計ジャッジ時間 | 2,957 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 33 |
ソースコード
import sys
def input(): return sys.stdin.readline().rstrip()
def ii(f=int): return f(input())
def mi(f=int): return map(f, input().split())
def li(f=int): return list(map(f, mi()))
T = li()
t = 0
f = True
for i in range(7):
if T[i] == -1:
f = False
t += T[i]
if(f and t <= 6000):print(6000 - t)
else: print(-1)