結果
| 問題 |
No.176 2種類の切手
|
| コンテスト | |
| ユーザー |
e-mon
|
| 提出日時 | 2015-04-03 22:56:59 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 241 bytes |
| コンパイル時間 | 428 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-10-08 03:06:16 |
| 合計ジャッジ時間 | 2,058 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 4 |
ソースコード
#!/usr/bin/env python
# -*- coding: utf-8 -*-
A,B,T = map(int,input().split())
ans = 10**10
for i in range(A):
if B*i >= T:
break
x = ((T-B*i)+A-1)//A
if abs(T-ans) > abs(T-A*x-B*i):
ans = A*x + B*i
print(ans)
e-mon