結果

問題 No.1453 手助け
ユーザー kuc_jackson
提出日時 2021-04-01 23:02:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 910 ms
コンパイル使用メモリ 103,280 KB
最終ジャッジ日時 2025-01-20 07:16:01
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<iomanip>
#include<bitset>
#include<algorithm>
#include<string>
#include<vector>
#include<cstdio>
#include<cmath>
#include<queue>
#include<map>
#include<set>
using namespace std;
using ll=long long;

int main(){
    int A, B, C, D, E;
    cin >> A >> B >> C >> D >> E;
    int np = A * (B - C) * D;
    int discount = (A * (B - C) / 10 - (E - 1) / 10) * E;
    cout << np - discount << endl;
    return 0;
}
0