結果
問題 |
No.928 軽減税率?
|
ユーザー |
![]() |
提出日時 | 2019-11-22 23:08:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 544 bytes |
コンパイル時間 | 772 ms |
コンパイル使用メモリ | 79,588 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-11 04:44:05 |
合計ジャッジ時間 | 13,317 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 RE * 2 TLE * 1 -- * 10 |
ソースコード
#include <iostream> #include <vector> #include <queue> #include <stack> #include <set> #include <map> #include <iomanip> #include <cassert> using namespace std; using ll = long long; int main() { ll p, q, a; cin >> p >> q >> a; assert(p != q); if(a == 0) while(1); 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; }