結果

問題 No.928 軽減税率?
ユーザー tanon710
提出日時 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
権限があれば一括ダウンロードができます

ソースコード

diff #

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)
0