結果

問題 No.176 2種類の切手
コンテスト
ユーザー pluto77
提出日時 2016-03-25 09:57:55
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 28 ms / 1,000 ms
+ 764µs
コード長 200 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 57 ms
コンパイル使用メモリ 14,976 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2026-09-11 20:00:35
合計ジャッジ時間 2,429 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 29
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#coding: utf-8
##yuki_176
import sys

A,B,T=map(int,input().split())

res=sys.maxsize
for x in range(A+1):
 if x*B>=T+B:
  break
 temp=x*B+A*int((T-x*B+A-1)/A)
 if temp<=res:
  res=temp
  
print(res)
0