結果

問題 No.3678 しゃべりすぎた男
コンテスト
ユーザー so-ishikawa
提出日時 2026-09-05 13:12:07
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 374 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 237 ms
コンパイル使用メモリ 95,956 KB
実行使用メモリ 78,980 KB
最終ジャッジ日時 2026-09-05 13:12:30
合計ジャッジ時間 4,360 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 28 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#!/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_)
0