結果
問題 | No.928 軽減税率? |
ユーザー |
|
提出日時 | 2020-04-09 20:44:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 319 ms / 1,000 ms |
コード長 | 761 bytes |
コンパイル時間 | 364 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-13 20:21:55 |
合計ジャッジ時間 | 5,622 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
MOD = 10 ** 9 + 7 INF = 10 ** 10 import sys input = sys.stdin.readline sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from bisect import bisect_left,bisect_right from collections import deque def main(): p,q,a = map(int,input().split()) if p == q: if a == 0: print(0) return else: print(1000000000) return if p < q: ans = 1000000000 for x in range(1,10001): if (x * p)//100 >= (x * q)//100 + a: ans -= 1 print(ans) return ans = 0 for x in range(1,100 * a + 20): if (x * p)//100 < (x * q)//100 + a: ans +=1 print(ans) if __name__ =='__main__': main()