結果
| 問題 | No.176 2種類の切手 |
| コンテスト | |
| ユーザー |
ayaoni
|
| 提出日時 | 2020-11-29 19:49:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 188 bytes |
| 記録 | |
| コンパイル時間 | 130 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 57,984 KB |
| 最終ジャッジ日時 | 2026-04-04 02:46:21 |
| 合計ジャッジ時間 | 1,942 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 25 WA * 4 |
ソースコード
import sys
def MI(): return map(int,sys.stdin.readline().rstrip().split())
A,B,T = MI()
ans = 10**18
for i in range(min(T//B,A)+2):
ans = min(ans,A*((T-B*i+A-1)//A)+B*i)
print(ans)
ayaoni