結果
問題 |
No.928 軽減税率?
|
ユーザー |
![]() |
提出日時 | 2019-11-22 23:06:33 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 480 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 79,556 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-11 04:43:24 |
合計ジャッジ時間 | 10,945 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 22 WA * 12 |
ソースコード
#include <iostream> #include <vector> #include <queue> #include <stack> #include <set> #include <map> #include <iomanip> using namespace std; using ll = long long; int main() { ll p, q, a; cin >> p >> q >> a; if(p <= q) { cout << 1000000000 << endl; return 0; } int c = 200000000; int ans = 0; for(ll i = 1; i <= c; i++) { if(i * (100 + p) / 100 < i * (100 + q) / 100 + a) ans++; } cout << ans << endl; return 0; }