結果

問題 No.3678 しゃべりすぎた男
コンテスト
ユーザー kmmtkm
提出日時 2026-09-05 13:05:20
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 56 ms / 2,000 ms
+ 30µs
コード長 483 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 237 ms
コンパイル使用メモリ 96,200 KB
実行使用メモリ 79,060 KB
最終ジャッジ日時 2026-09-05 13:06:00
合計ジャッジ時間 4,063 ms
ジャッジサーバーID
(参考情報)
judge4_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys

# sys.setrecursionlimit(10**8)


def debug(*args):
    print("!Debug!", *args, file=sys.stderr)


def main():
    t = list(map(int, input().split()))
    s = 6000
    flg = False
    for i in range(7):
        if t[i] == -1 or flg:
            flg = True
            print(-1)
        else:
            s -= t[i]
            if s < 0:
                print(-1)
                flg = True
            else:
                print(s)


if __name__ == "__main__":
    main()
0