結果
問題 |
No.928 軽減税率?
|
ユーザー |
|
提出日時 | 2020-05-19 00:57:10 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 437 ms / 1,000 ms |
コード長 | 381 bytes |
コンパイル時間 | 103 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-01 22:22:07 |
合計ジャッジ時間 | 15,684 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 34 |
ソースコード
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) p, q, a = map(int, readline().split()) cnt = 10 ** 9 - (10 ** 6 + a) if (10 ** 9 * p) // 100 < (10 ** 9 * q) // 100 + a else 0 for i in range(1, 10 ** 6 + a + 1): cnt += 1 if (i * p) // 100 < (i * q) // 100 + a else 0 print(cnt)