結果
| 問題 | 
                            No.1453 手助け
                             | 
                    
| コンテスト | |
| ユーザー | 
                             LV3zJigVW57oPGy
                         | 
                    
| 提出日時 | 2022-10-30 11:48:34 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 391 bytes | 
| コンパイル時間 | 1,036 ms | 
| コンパイル使用メモリ | 157,700 KB | 
| 実行使用メモリ | 6,948 KB | 
| 最終ジャッジ日時 | 2024-07-07 04:42:59 | 
| 合計ジャッジ時間 | 1,879 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 WA * 2 | 
| other | AC * 2 WA * 19 | 
ソースコード
#include <bits/stdc++.h> 
using namespace std;
#include <ios>
#include <iomanip>
int main() {
  int a,b,c,d,e;
  cin >>a>>b>>c>>d>>e;
  int z=(b-c)*a;//飴玉の数
  int X=z*d;//お金
  	if(z>1){
    X=(z-1)*d;
    	if(z%10!=0){
        }
        else if(z%10==0){
          	if(e<=X){
            X=X-e;
            }
            else if(e>X){
            }
        }
    }
  cout <<X;
}
            
            
            
        
            
LV3zJigVW57oPGy