結果

問題 No.285 消費税2
ユーザー miku39kk
提出日時 2017-08-09 17:14:51
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 492 ms
コンパイル使用メモリ 62,372 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-12 03:57:12
合計ジャッジ時間 1,408 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;

int main() {
    long long d,tax,f;
    cin >> d;
    tax = d*8;
    f = tax % 100;
    tax /= 100;
    printf("%lld.%02lld\n",d+tax,f);
    return 0;
}

0