結果

問題 No.928 軽減税率?
コンテスト
ユーザー tanon710
提出日時 2020-05-04 22:23:46
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 345 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 170 ms
コンパイル使用メモリ 86,000 KB
実行使用メモリ 61,088 KB
最終ジャッジ日時 2026-03-11 06:06:01
合計ジャッジ時間 3,633 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_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