結果

問題 No.904 サメトロ
ユーザー None
提出日時 2021-03-26 07:35:53
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 155 bytes
コンパイル時間 330 ms
コンパイル使用メモリ 81,716 KB
実行使用メモリ 54,088 KB
最終ジャッジ日時 2024-11-27 17:48:29
合計ジャッジ時間 2,444 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 19 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A,B=[],[]
for _ in range(N-1):
    a,b=map(int, input().split())
    A.append(a)
    B.append(b)
SA,SB=sum(A),sum(B)
m=min(SA,SB)
print(m+1)
0