結果

問題 No.56 消費税
ユーザー wightou
提出日時 2025-04-29 00:45:29
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 496 bytes
コンパイル時間 4,390 ms
コンパイル使用メモリ 272,376 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-04-29 00:45:35
合計ジャッジ時間 4,512 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

/////////////////// メイン ///////////////////

int main () {
  
  //////////////////// 入力 ////////////////////

  int d, p;
  cin >> d >> p;

  //////////////// 出力変数定義 ////////////////

  int result = 0;

  //////////////////// 処理 ////////////////////

  result = d*(100+p)/100;

  //////////////////// 出力 ////////////////////

  cout << result << endl;

  //////////////////// 終了 ////////////////////

  return 0;

}
0