結果

問題 No.56 消費税
ユーザー koturn
提出日時 2016-03-12 13:58:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 55,292 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-18 03:07:56
合計ジャッジ時間 1,080 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

// http://yukicoder.me/problems/111
#include <cstdlib>
#include <iostream>


int
main()
{
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  unsigned int d, p;
  std::cin >> d >> p;
  std::cout << static_cast<int>(d * (100 + p) / 100.0) << std::endl;

  return EXIT_SUCCESS;
}
0