結果

問題 No.285 消費税2
ユーザー notetonous
提出日時 2016-04-19 15:20:08
言語 C90
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 128 bytes
コンパイル時間 195 ms
コンパイル使用メモリ 20,736 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-04 14:06:23
合計ジャッジ時間 1,141 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 3 WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |   scanf("%lf",&D);
      |   ^~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>
int main(){
  double eps=10e-9;
  double D,ans;
  scanf("%lf",&D);
  ans=D*1.08+eps;
  printf("%f\n",ans);
}
0