結果
| 問題 | 
                            No.1453 手助け
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-03-31 21:23:31 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 286 bytes | 
| コンパイル時間 | 1,629 ms | 
| コンパイル使用メモリ | 166,536 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-12-15 14:44:48 | 
| 合計ジャッジ時間 | 2,456 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 10 WA * 11 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(void){
    int a,B,c,x,e,goukei=0;cin >> a >> B >> c >> x >> e;
    int b=B-c;
    
    for(int i=0;i<b*a;i++){
        if(i%10==0 && e<=x){
            x=x-e;
        }
        goukei=goukei+x;
    }
    cout << goukei << endl;
}