結果

問題 No.56 消費税
ユーザー piniky
提出日時 2015-09-09 16:16:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 313 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 70,684 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 05:04:04
合計ジャッジ時間 1,373 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <stack>
#include <cmath>
#include <functional>
#define rep(i,n) for (int i=0;i<(n);i++)

using namespace std;

int main(){
	int A, B;
	cin >> A >> B;


	int x = floor(A * (1 + (double)B / 100));
	cout << x << endl;
	return 0;
}
0