結果

問題 No.928 軽減税率?
ユーザー queee
提出日時 2019-11-22 22:16:50
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 307 bytes
コンパイル時間 401 ms
コンパイル使用メモリ 54,792 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-11 03:58:05
合計ジャッジ時間 2,538 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 24 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;

int main() {
  double p, q, a; cin >> p >> q >> a; int an = 0;
  for(int i=1; i<1e7+10; i++) {
    int s = i * (100 + p) / 100;
    int t = i * (100 + q) / 100 + a;
    if (s < t) an++;
  }
  if (an == 1e7+9) cout << 1000000000 << endl;
  else cout << an << endl;
}
0