結果

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

ソースコード

diff #

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

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

 }
0