結果
| 問題 | No.928 軽減税率? |
| コンテスト | |
| ユーザー |
ei13337
|
| 提出日時 | 2019-11-22 23:11:41 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 343 ms / 1,000 ms |
| + 240µs | |
| コード長 | 505 bytes |
| 記録 | |
| コンパイル時間 | 432 ms |
| コンパイル使用メモリ | 95,640 KB |
| 実行使用メモリ | 9,908 KB |
| 最終ジャッジ日時 | 2026-10-28 13:57:45 |
| 合計ジャッジ時間 | 14,895 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge7_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#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;
int c = 200000000;
int ans = 0;
for(ll i = 1; i <= c; i++) {
if(i * (100 + p) / 100 < i * (100 + q) / 100 + a) ans++;
}
if(p < q) ans += 1000000000 - c;
if(p == q) {
if(a != 0) ans += 1000000000 - c;
}
cout << ans << endl;
return 0;
}
ei13337