結果

問題 No.928 軽減税率?
ユーザー recososo
提出日時 2019-12-06 12:32:20
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 346 bytes
コンパイル時間 1,638 ms
コンパイル使用メモリ 166,076 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-23 05:07:25
合計ジャッジ時間 2,972 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
  int p,q,a;cin >> p >> q >> a;
  if(p==q){
    if(a==0){
      cout << 0 << endl;
    }
    else{
      cout << 1000000000 << endl;
    }
    return 0;
  }
  int ans=0;
  for(int i=1;i<=100*(a+1);i++){
    if((100+p)*i/100<(100+q)*i/100+a){
      ans++;
    }
  }
  cout << ans << endl;
}
0