結果
問題 | No.139 交差点 |
ユーザー |
|
提出日時 | 2016-07-09 13:01:22 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 231 bytes |
コンパイル時間 | 721 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,272 KB |
最終ジャッジ日時 | 2024-10-13 09:32:56 |
合計ジャッジ時間 | 1,430 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
#coding: utf-8#yuki_139n,l=map(int,raw_input().split())now=0time=0for i in xrange(n):x,w,t=map(int,raw_input().split())time+=x-nownow=xnext=(time/(2*t))*2*tif next+t<time+w:time=next+2*ttime+=l-nowprint time