結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
risujiroh
|
| 提出日時 | 2019-11-22 22:23:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 426 bytes |
| 記録 | |
| コンパイル時間 | 1,752 ms |
| コンパイル使用メモリ | 164,624 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-11 04:05:36 |
| 合計ジャッジ時間 | 6,276 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 2 |
| other | AC * 3 RE * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int p, q, a;
cin >> p >> q >> a;
if (p == q) {
if (a) {
cout << (int)1e9 << '\n';
} else {
cout << 0 << '\n';
}
return 0;
}
assert(false);
int res = 0;
for (int r = 1; r <= 100; ++r) {
int num = a - (p * r / 100 - q * r / 100);
int den = p - q;
res += max((num + den - 1) / den, 0);
}
cout << res << '\n';
}
risujiroh