結果

問題 No.285 消費税2
ユーザー yuppe19 😺
提出日時 2016-01-17 15:06:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 354 bytes
コンパイル時間 574 ms
コンパイル使用メモリ 56,276 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 20:19:46
合計ジャッジ時間 1,318 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:10:15: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |   i64 d; scanf("%lld", &d);
      |          ~~~~~^~~~~~~~~~~~

ソースコード

diff #

// (ΦωΦ)<
// doubleの精度は15桁はある。
// 答えは14桁以内に収まるはずなので、これで大丈夫なんじゃないかにゃー…
#include <iostream>
#include <algorithm>
using namespace std;
using i64 = long long;

int main(void) {
  i64 d; scanf("%lld", &d);
  double res = d * 1.08;
  printf("%.2f\n", res);
  return 0;
}
0