結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-11-15 14:02:34 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 363 bytes |
| 記録 | |
| コンパイル時間 | 2,051 ms |
| コンパイル使用メモリ | 191,952 KB |
| 最終ジャッジ日時 | 2025-01-16 00:54:37 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 WA * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int P, Q, A; {
cin >> P >> Q >> A;
}
if (P <= Q) {
cout << 1000000000 << endl;
} else {
int x = A * 100 / (P - Q) + 200;
int res = 0;
while (x > 0) {
res += (x + (int64_t) Q * x / 100 + A) > (x + (int64_t) P * x / 100);
--x;
}
cout << res << endl;
}
}