結果

問題 No.56 消費税
ユーザー gon_027
提出日時 2018-09-12 23:52:39
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 332 bytes
コンパイル時間 523 ms
コンパイル使用メモリ 57,852 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 02:36:41
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 5 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <cmath>
using namespace std;

#define p(x) cout << x << endl;
#define el cout << endl;

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);

    float d, p;
    cin >> d >> p;

    p = p / 100;
    d = (int)(d + (d * p));
    // d = d + floor(d * p);

    cout << d << endl;
}
0