結果
問題 |
No.928 軽減税率?
|
ユーザー |
|
提出日時 | 2019-10-29 04:30:43 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 400 bytes |
コンパイル時間 | 1,884 ms |
コンパイル使用メモリ | 192,060 KB |
最終ジャッジ日時 | 2025-01-08 02:04:49 |
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 2 |
other | TLE * 34 |
ソースコード
#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; }