結果

問題 No.56 消費税
ユーザー ただのガゼス(MonAgent)
提出日時 2023-12-27 01:19:35
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 1,695 ms
コンパイル使用メモリ 165,352 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-27 15:20:14
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int D, P;
    cin >> D >> P;
    int tax_included = 0;
    double ctax = 1 + (double)P / 100;
    tax_included = (double)D * ctax;
    cout << tax_included << endl;
    return 0; 
}

0