結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-04 22:23:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 59,536 KB |
| 最終ジャッジ日時 | 2024-06-25 01:27:06 |
| 合計ジャッジ時間 | 5,202 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 32 WA * 2 |
ソースコード
p,q,a=map(int,input().split())
if p<=q:
cnt=10**9
for i in range(1,10**7):
eatin=i+(i*p)//100
takeout=i+(i*q)//100+a
if eatin>=takeout:
cnt-=1
else:
cnt=0
for i in range(1,10**7):
eatin=i+(i*p)//100
takeout=i+(i*q)//100+a
if eatin<takeout:
cnt+=1
print(cnt)