結果
問題 |
No.904 サメトロ
|
ユーザー |
|
提出日時 | 2022-07-17 08:56:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 179 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-29 10:23:32 |
合計ジャッジ時間 | 2,053 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 14 |
ソースコード
N = int(input()) AB = tuple(tuple(map(int, input().split())) for _ in range(N - 1)) a1_max = sum(b for _, b in AB) b1_max = sum(a for a, _ in AB) print(min(a1_max, b1_max) + 1)