結果
問題 |
No.928 軽減税率?
|
ユーザー |
![]() |
提出日時 | 2020-02-19 20:43:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 564 bytes |
コンパイル時間 | 494 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-08 18:15:34 |
合計ジャッジ時間 | 2,816 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 RE * 13 |
ソースコード
P,Q,A = map(int, input().split()) if P-Q <= 0: if P == Q and A == 0: ans = 0 elif P == Q: ans = 10**9 else: ans = 0 for i in ragne(1, 10**9): Pin = (100+P)*i//100 Pout = (100+Q)*i//100+A if Pin < Pout: ans = 10**9-i+1 break else: x = 100*A//(P-Q) ans = max(1, x-1000)-1 for i in range(max(1, x-1000), min(10**9, x+1000)+1): Pin = (100+P)*i//100 Pout = (100+Q)*i//100+A if Pin < Pout: ans += 1 print(ans)