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