結果

問題 No.285 消費税2
ユーザー Tiramister
提出日時 2018-10-18 20:29:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 560 ms
コンパイル使用メモリ 68,456 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-07 00:50:39
合計ジャッジ時間 1,537 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iomanip>
#include <iostream>
using namespace std;
using ll = long long;

int main() {
    ll D;
    cin >> D;
    D *= 108;
    cout << D / 100 << ".";
    cout << right << setw(2) << setfill('0') << D % 100 << endl;
    return 0;
}
0