結果
問題 |
No.56 消費税
|
ユーザー |
![]() |
提出日時 | 2018-09-12 23:52:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 446 ms |
コンパイル使用メモリ | 59,292 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 02:35:29 |
合計ジャッジ時間 | 1,339 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 5 WA * 18 |
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; #define p(x) cout << x << endl; #define el cout << endl; int main(){ cin.tie(0); ios::sync_with_stdio(false); float d, p; cin >> d >> p; p = p / 100; // d = (int)(d + (d * p)); d = d + floor(d * p); cout << d << endl; }