結果

問題 No.56 消費税
ユーザー lilac_chemistry
提出日時 2018-04-03 17:12:11
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 58,488 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 08:30:57
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 4 WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
using namespace std;

int main() {
	double D;
	float P;
	cin >> D >> P;

	float ans;
	P = (P*0.01)+1.0;
	//cout << P << "\n";
	ans = D*P;
	//cout << ans << "\n";

	cout << ans<< "\n";
	return 0;
}
0