結果
| 問題 |
No.928 軽減税率?
|
| コンテスト | |
| ユーザー |
leaf_1415
|
| 提出日時 | 2019-11-22 21:45:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 427 bytes |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 55,116 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 03:12:16 |
| 合計ジャッジ時間 | 2,539 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 34 |
ソースコード
#include <iostream>
#include <stdio.h>
#define llint long long
using namespace std;
llint p, q, a;
int main(void)
{
ios::sync_with_stdio(0);
cin.tie(0);
cin >> p >> q >> a;
if(p == q && a == 0){
cout << 0 << endl;
return 0;
}
llint ans = 0;
for(llint i = 1; i <= 10000000; i++){
if((100+p)*i/100 < (100+q)*i/100 + a) ans++;
}
if(p <= q) ans += 1000000000 - 10000000;
cout << ans << endl;
return 0;
}
leaf_1415