結果
| 問題 | No.904 サメトロ |
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2019-11-23 21:25:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 672 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-04-27 13:57:50 |
| 合計ジャッジ時間 | 8,763 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 8 |
ソースコード
a,b=[],[]
for i in range(int(input())-1):
c,d=map(int,input().split())
a.append(c)
b.append(d)
i = max(b) - sum(a) + a[b.index(max(b))]
d = sum(b)+1
if i < 0:
i=0
print(d-i)
Schnee