結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
ttr
|
| 提出日時 | 2020-02-19 20:57:04 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 1,000 ms |
| + 124µs | |
| コード長 | 567 bytes |
| 記録 | |
| コンパイル時間 | 56 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2026-09-12 05:07:32 |
| 合計ジャッジ時間 | 3,102 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
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:
cnt = 0
for i in range(1, 10**5+1):
Pin = (100+P)*i//100
Pout = (100+Q)*i//100+A
if Pin < Pout:
cnt += 1
ans = 10**9-10**5+cnt
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)
ttr