結果

問題 No.56 消費税
ユーザー eyeSharp
提出日時 2019-10-11 20:07:10
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 1,488 ms
コンパイル使用メモリ 159,488 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 03:57:49
合計ジャッジ時間 2,351 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 5 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

/*
    No.56 消費税
    https://yukicoder.me/problems/no/56
*/
#include <bits/stdc++.h>
using namespace std;

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

    int n;
    double p;
    cin >> n;
    cin >> p;
    cout << floor((double)n + (double)n * p / 100) << endl;
}
0