結果
| 問題 |
No.2099 [Cherry Alpha B] Time Machine
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2022-10-14 22:18:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 207 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 24,384 KB |
| 最終ジャッジ日時 | 2024-06-26 15:16:25 |
| 合計ジャッジ時間 | 6,718 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 71 |
ソースコード
t = int(input())
x, a = map(int, input().split())
y, b = map(int, input().split())
ans = y*10**7
for i in range(10**7):
if t < 0 and b*i < -t: continue
ans = min(ans, i*y+(t+b*i)//a*x+(t+b*i)%a)
print(ans)
ニックネーム