結果
問題 | No.139 交差点 |
ユーザー |
|
提出日時 | 2023-11-23 03:54:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 5,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 139 ms |
コンパイル使用メモリ | 81,916 KB |
実行使用メモリ | 52,608 KB |
最終ジャッジ日時 | 2024-09-26 07:51:26 |
合計ジャッジ時間 | 2,464 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 28 |
ソースコード
n, l = map(int, input().split())c = 0ans = 0for _ in range(n):x, w, t = map(int, input().split())ans += x - cq, r = divmod(ans, t)if q % 2 == 0:if r + w <= t:ans += welse:ans += w + t + (t - r)else:ans += t - r + wc = x + wans += l - cprint(ans)