結果
問題 | No.2259 Gas Station |
ユーザー |
![]() |
提出日時 | 2023-04-22 03:25:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 428 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-06 19:35:49 |
合計ジャッジ時間 | 2,069 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
l,r,c=map(int,input().split()) r2=min(l+1003,r+1) ans=999 for i in range(l,r2): t=(c*i)%1000 if t==0: ans=0 else: ans=min(ans,1000-t) print(ans)