結果
問題 |
No.904 サメトロ
|
ユーザー |
![]() |
提出日時 | 2019-10-11 21:28:21 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 150 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-25 06:41:17 |
合計ジャッジ時間 | 1,922 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 19 WA * 14 |
ソースコード
N=int(input()) S=[tuple(map(int,input().split())) for i in range(N-1)] MAX=0 MIN=0 for x,y in S: MAX+=y MIN+=y-x print(MAX-max(MIN,0)+1)