結果
問題 |
No.2259 Gas Station
|
ユーザー |
👑 |
提出日時 | 2023-04-08 08:30:58 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 154 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-10-03 04:47:20 |
合計ジャッジ時間 | 1,543 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 21 |
ソースコード
L=int(input()) R=int(input()) C=int(input()) t=1000 a=t b=(L*C)%t for i in range(L,R+1): if b==0: print(0) exit(1) a=min(a,t-b) b=(b+C)%t print(a)