結果
問題 | No.285 消費税2 |
ユーザー |
|
提出日時 | 2024-03-31 19:04:42 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 4,039 ms |
コンパイル使用メモリ | 251,492 KB |
最終ジャッジ日時 | 2025-02-20 18:16:09 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;ll d;int main() {cin >> d;if (d * 108 % 100 == 0) cout << d * 108 / 100 << endl;else cout << fixed << setprecision(2) << (ld)d * 108 / 100 << endl;return 0;}