結果

問題 No.928 軽減税率?
コンテスト
ユーザー tanon710
提出日時 2020-05-04 22:23:46
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 345 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 481 ms
コンパイル使用メモリ 95,720 KB
実行使用メモリ 83,456 KB
最終ジャッジ日時 2026-07-29 13:01:55
合計ジャッジ時間 5,667 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 32 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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