結果

問題 No.928 軽減税率?
ユーザー ei13337ei13337
提出日時 2019-11-22 23:08:57
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 544 bytes
コンパイル時間 691 ms
コンパイル使用メモリ 79,940 KB
実行使用メモリ 8,704 KB
最終ジャッジ日時 2024-04-19 12:26:24
合計ジャッジ時間 12,824 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 418 ms
6,816 KB
testcase_01 AC 418 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 414 ms
5,376 KB
testcase_05 AC 411 ms
5,376 KB
testcase_06 AC 420 ms
5,376 KB
testcase_07 AC 416 ms
5,376 KB
testcase_08 AC 425 ms
5,376 KB
testcase_09 AC 424 ms
5,376 KB
testcase_10 AC 422 ms
5,376 KB
testcase_11 AC 421 ms
5,376 KB
testcase_12 AC 430 ms
5,376 KB
testcase_13 AC 422 ms
5,376 KB
testcase_14 AC 416 ms
5,376 KB
testcase_15 AC 421 ms
5,376 KB
testcase_16 AC 416 ms
5,376 KB
testcase_17 AC 419 ms
5,376 KB
testcase_18 AC 413 ms
5,376 KB
testcase_19 AC 421 ms
5,376 KB
testcase_20 AC 416 ms
5,376 KB
testcase_21 AC 434 ms
5,376 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 2 ms
5,376 KB
testcase_25 TLE -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
testcase_32 -- -
testcase_33 -- -
testcase_34 -- -
testcase_35 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0