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