結果

問題 No.928 軽減税率?
ユーザー chocorusk
提出日時 2019-11-22 21:34:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 830 bytes
コンパイル時間 1,058 ms
コンパイル使用メモリ 109,716 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-11 02:56:01
合計ジャッジ時間 2,174 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <complex>
#include <unordered_map>
#include <unordered_set>
#include <random>
#include <cassert>
#include <fstream>
#include <utility>
#include <functional>
#include <time.h>
#include <stack>
#include <array>
#define popcount __builtin_popcount
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;

int main()
{
	int p, q, a;
	cin>>p>>q>>a;
	if(p<q || (p==q && a>0)){
		cout<<1000000000<<endl;
		return 0;
	}
	if(p==q && a==0){
		cout<<0<<endl;
		return 0;
	}
	int ans=0;
	for(int i=1; i<=1100000; i++){
		if((100+p)*i/100-(100+q)*i/100<a){
			ans++;
		}
	}
	cout<<ans<<endl;
	return 0;
}
0