結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2016-05-04 20:59:37 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 359 bytes |
| コンパイル時間 | 815 ms |
| コンパイル使用メモリ | 82,552 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-05 06:38:45 |
| 合計ジャッジ時間 | 4,371 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 RE * 1 |
| other | AC * 2 WA * 1 RE * 23 |
ソースコード
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <deque>
#include <algorithm>
using namespace std;
int main() {
int D;
cin >> D;
string tmpD = to_string(D);
int len;
len = tmpD.length();
D *= 108;
string ans = to_string(D);
ans.insert(len, ".");
cout << ans << endl;
return 0;
}
ant2357