結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
srup٩(๑`н´๑)۶
|
| 提出日時 | 2016-07-19 17:21:18 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 341 bytes |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 60,668 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-15 17:20:35 |
| 合計ジャッジ時間 | 1,279 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
int main(void){
long long d; cin >> d;
d *= 108;
double ans;
string s = to_string(d);
int n = s.size();
rep(i, n - 2){
cout << s[i];
}
cout << "." << s[n - 2] << s[n - 1] << endl;
return 0;
}
srup٩(๑`н´๑)۶