結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2020-09-08 20:26:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 458 bytes |
コンパイル時間 | 1,005 ms |
コンパイル使用メモリ | 94,240 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 06:44:48 |
合計ジャッジ時間 | 1,757 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <iomanip> #include <stack> #include <algorithm> #include <string> #include <map> #include <iterator> #include <set> #include <queue> #include <bitset> #include <cassert> using namespace std; int main() { long long D; cin >> D; D *= 108; string res = to_string(D); cout << res.substr(0, res.size() - 2) + "." + res.substr(res.size() - 2) << endl; }