結果
| 問題 |
No.2259 Gas Station
|
| コンテスト | |
| ユーザー |
lllllll88938494
|
| 提出日時 | 2023-04-13 03:20:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 319 bytes |
| コンパイル時間 | 1,226 ms |
| コンパイル使用メモリ | 81,720 KB |
| 実行使用メモリ | 54,016 KB |
| 最終ジャッジ日時 | 2024-10-09 04:25:54 |
| 合計ジャッジ時間 | 2,086 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 14 WA * 7 |
ソースコード
l,r,c=map(int,input().split())
if r-l < 100000:
ans = 10**10
for i in range(l,r+1):
ans=min(i*c%1000,ans)
print(ans)
exit()
t=l*c // 1000
t1=r*c// 1000
if t1 - t > 0:
print(0)
else:
ans = 10**10
for i in range(l,r+1):
ans=min(i*c%1000,ans)
print(ans)
lllllll88938494