結果

問題 No.56 消費税
ユーザー saitamansaitaman
提出日時 2018-07-15 20:07:07
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 271 bytes
コンパイル時間 1,093 ms
コンパイル使用メモリ 81,136 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 00:48:39
合計ジャッジ時間 1,952 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <stack>
#include <unordered_map>
using namespace std;

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