結果

問題 No.928 軽減税率?
ユーザー ei13337ei13337
提出日時 2019-11-22 23:04:42
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 479 bytes
コンパイル時間 713 ms
コンパイル使用メモリ 79,596 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 04:42:17
合計ジャッジ時間 2,164 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#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 = 10000000;
    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