結果
問題 | No.928 軽減税率? |
ユーザー |
![]() |
提出日時 | 2019-11-22 23:03:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 272 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-11 04:41:02 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 8 WA * 26 |
ソースコード
import math P,Q,A = map(int,input().split()) def test(mid,A): return math.floor(((100+P)/100) * mid) >= math.floor(((100+Q)/100) * mid) + A left = 0 right = 10**9 while left+1 < right: mid = (left+right)//2 if test(mid,A): right = mid else: left = mid answer = right print(answer-1)