結果

問題 No.56 消費税
ユーザー
提出日時 2017-05-24 17:47:34
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 107 ms
コンパイル使用メモリ 29,824 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-19 16:12:21
合計ジャッジ時間 782 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

  #include <stdio.h>
  #include <math.h>
  int main()
  {
   int D;
   double P;

   scanf("%d",&D);
   scanf("%lf",&P);
   P = (D * (1 + (P*0.01) ));
   printf("%.0lf",floor(P));
}
0