結果

問題 No.928 軽減税率?
コンテスト
ユーザー Pachicobue
提出日時 2019-10-29 04:30:43
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
TLE  
実行時間 -
コード長 400 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,352 ms
コンパイル使用メモリ 208,868 KB
実行使用メモリ 9,912 KB
最終ジャッジ日時 2026-10-24 13:13:26
合計ジャッジ時間 58,205 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge6_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample TLE * 2
other TLE * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using usize = std::size_t;
int main()
{
    constexpr usize max = 1000000000;
    usize p, q, a;
    std::cin >> p >> q >> a;
    usize ans = 0;
    for (usize x = 1; x <= max; x++) {
        const usize eat_in   = x * p / 100;
        const usize take_out = x * q / 100 + a;
        if (eat_in < take_out) { ans++; }
    }
    std::cout << ans << std::endl;
    return 0;
}
0