結果
| 問題 |
No.904 サメトロ
|
| コンテスト | |
| ユーザー |
Schnee
|
| 提出日時 | 2019-11-23 21:25:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-10-11 07:02:18 |
| 合計ジャッジ時間 | 2,099 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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