結果
問題 |
No.928 軽減税率?
|
ユーザー |
![]() |
提出日時 | 2019-11-25 20:53:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 261 bytes |
コンパイル時間 | 88 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-14 14:33:56 |
合計ジャッジ時間 | 2,041 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 WA * 11 |
ソースコード
P,Q,A=map(int,input().split()) ans = int() if P == Q: ans = 0 elif P < Q: ans = 10**9 else: x = int(100*A/(P-Q)) ans = max(0,x-101) for i in range(max(1,x-100),x+100): if int(i*P/100)-int(i*Q/100) < A: ans += 1 print(ans)