結果

問題 No.56 消費税
ユーザー Ryu
提出日時 2017-12-28 17:43:51
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 215 bytes
コンパイル時間 690 ms
コンパイル使用メモリ 70,488 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-12-21 09:03:27
合計ジャッジ時間 1,612 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 5 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>

using namespace std;

int main()
{
    long double D, P;
    cin >> D >> P;
    cout << floor(D + (D * P / 100)) << endl;
    return 0;
}
0