結果

問題 No.56 消費税
ユーザー あ
提出日時 2017-05-24 21:51:19
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 1,227 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 18:37:23
合計ジャッジ時間 1,800 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 13 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

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

   scanf("%lf",&D);
   scanf("%lf",&P);

   Z = (D * (1 + (P*0.01) ));
   
   Z = floor (Z);
   printf("%.lf\n",Z);
 }
0