結果

問題 No.928 軽減税率?
ユーザー Mister
提出日時 2020-04-26 13:09:52
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 828 ms
コンパイル使用メモリ 65,676 KB
最終ジャッジ日時 2025-01-10 01:55:02
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using lint = long long;

void solve() {
    lint p, q, a;
    std::cin >> p >> q >> a;

    int ans = 0;

    for (lint m = 1; m <= 2000000; ++m) {
        auto x = m * (p + 100) / 100;
        auto y = m * (q + 100) / 100 + a;
        if (x < y) ++ans;
    }

    std::cout << ans << std::endl;
}

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    solve();

    return 0;
}
0