結果
| 問題 |
No.904 サメトロ
|
| コンテスト | |
| ユーザー |
s_shohei
|
| 提出日時 | 2020-04-13 22:02:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 134 bytes |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 82,388 KB |
| 実行使用メモリ | 53,948 KB |
| 最終ジャッジ日時 | 2024-09-25 10:38:56 |
| 合計ジャッジ時間 | 2,719 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 14 |
ソースコード
n = int(input())
sma=0
smb=0
for i in range(n-1):
a,b = list(map(int,input().split()))
sma+=a
smb+=b
print(min(sma,smb)+1)
s_shohei