結果
| 問題 |
No.139 交差点
|
| コンテスト | |
| ユーザー |
Mr.Fuku
|
| 提出日時 | 2018-08-12 17:10:03 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-24 07:23:32 |
| 合計ジャッジ時間 | 2,119 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 27 WA * 1 |
ソースコード
N,L = map(int,input().split())
s=l=0
for i in range(N):
x,w,t = map(int,input().split())
s,l = s+x-l,x+w
if not (s/t%2<=1 and (s+w)/t%2<=1):
s += (2*t-s%(2*t))
s += w
s+= L-l
print(s)
Mr.Fuku