結果
問題 |
No.561 東京と京都
|
ユーザー |
|
提出日時 | 2017-12-23 14:38:08 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 214 bytes |
コンパイル時間 | 208 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-12-17 16:28:04 |
合計ジャッジ時間 | 1,428 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 1 WA * 13 RE * 3 |
ソースコード
n,d=map(int,input().split()) t,k=map(int,input().split()) ft=t fk=k-d for i in range(n-1): t,k=map(int,input().split()) t_i=max(ft,fk-d)+t k_i=max(ft-d,fk)+k ndt=t_i ndk=k_i print(max(ndt,ndk))