結果

問題 No.56 消費税
ユーザー gon_027
提出日時 2018-09-13 00:00:18
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 559 ms
コンパイル使用メモリ 59,224 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-28 02:49:13
合計ジャッジ時間 1,381 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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;
    p = floor(d * p);
    d = floor(d + p);

   p(d);
}
0