結果
| 問題 | No.3678 しゃべりすぎた男 |
| コンテスト | |
| ユーザー |
dokukuma
|
| 提出日時 | 2026-09-05 13:03:46 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 764 bytes |
| 記録 | |
| コンパイル時間 | 221 ms |
| コンパイル使用メモリ | 96,332 KB |
| 実行使用メモリ | 91,248 KB |
| 最終ジャッジ日時 | 2026-09-05 13:04:24 |
| 合計ジャッジ時間 | 8,409 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 33 |
ソースコード
import sys, time, random, heapq, math, itertools, copy
from collections import deque, Counter, defaultdict
from sortedcontainers import SortedSet, SortedList
from bisect import bisect, bisect_left, bisect_right
import heapq as hq
from functools import cache, cmp_to_key
def debug(*x):print('debug:',*x, file=sys.stderr)
sys.setrecursionlimit(300000)
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 61 - 1
mod = 998244353
dir = [(0, 1), (0, -1), (1, 0), (-1, 0)]
T = li()
cnt = 0
flg = False
for i in range(7):
if T[i] == -1:
flg = True
if flg or 6000 - T[i] - cnt < 0:
print(-1)
continue
print(6000 - T[i] - cnt)
cnt += T[i]
dokukuma