結果
| 問題 | 
                            No.928 軽減税率?
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ei13337
                         | 
                    
| 提出日時 | 2019-11-22 23:05:09 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 480 bytes | 
| コンパイル時間 | 804 ms | 
| コンパイル使用メモリ | 79,456 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-11 04:42:44 | 
| 合計ジャッジ時間 | 6,495 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 22 WA * 12 | 
ソースコード
#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;
    if(p <= q) {
        cout << 1000000000 << endl;
        return 0;
    }
    int c = 100000000;
    int ans = 0;
    for(ll i = 1; i <= c; i++) {
        if(i * (100 + p) / 100 < i * (100 + q) / 100 + a) ans++;
    }
    cout << ans << endl;
    return 0;
}
            
            
            
        
            
ei13337