結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-10-29 04:30:43 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 400 bytes |
| 記録 | |
| コンパイル時間 | 1,633 ms |
| コンパイル使用メモリ | 208,600 KB |
| 実行使用メモリ | 16,384 KB |
| 最終ジャッジ日時 | 2026-06-08 02:50:16 |
| 合計ジャッジ時間 | 6,458 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 2 |
| other | TLE * 2 -- * 32 |
ソースコード
#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;
}