結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 13:28:38 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 374 bytes |
| 記録 | |
| コンパイル時間 | 1,073 ms |
| コンパイル使用メモリ | 21,332 KB |
| 実行使用メモリ | 15,912 KB |
| 最終ジャッジ日時 | 2026-09-05 13:29:47 |
| 合計ジャッジ時間 | 6,097 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 28 WA * 5 |
ソースコード
#!/usr/bin/env python3
# -*- coding: utf-8-auto -*-
t = list(map(int, input().split()))
not_finish_flag = False
sum_ = 0
for i in range(len(t)):
if not_finish_flag or t[i] == -1:
print(-1)
continue
temp = sum_ + t[i]
if temp > 6000:
print(-1)
not_finish_flag = True
continue
sum_ = temp
print(6000 - sum_)