結果

問題 No.56 消費税
ユーザー Vertigo
提出日時 2024-04-01 16:07:30
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 600 ms
コンパイル使用メモリ 76,888 KB
最終ジャッジ日時 2025-02-20 18:55:54
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 22 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
#define ll long long

using namespace std;

int main() {
    ll n, m;
    double res = 0;
    ll cnt = 0, k = 0;
    cin >> n >> m;
    res = static_cast<double>(m) / 100;
    cnt = res * n;
    k = cnt + n;
    cout << k << endl;
    return 0;
}
0