結果

問題 No.56 消費税
ユーザー jolly_gliscor
提出日時 2018-02-23 02:14:32
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 243 bytes
コンパイル時間 612 ms
コンパイル使用メモリ 56,480 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 17:41:35
合計ジャッジ時間 1,443 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 19 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdlib>

using std::cout;
using std::cin;
using std::endl;
using std::noshowpoint;

int main(void)
{
  int d;
  float p;

  cin >> d;
  cin >> p;
  p = 0.01 * p;
  cout << (int)(p * d + d) << endl;
  return 0;
}
0