結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-17 12:45:09 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 284 bytes |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 66,112 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 06:29:30 |
| 合計ジャッジ時間 | 1,199 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
#include<iostream>
#include<string>
#define ll long long
using namespace std;
int main(){
ll x;
cin >> x;
x *= 108;
string ans = to_string(x);
ll n = ans.size();
cout << ans.substr(0,n-2) << ".";
cout << ans[n-2] << ans[n-1] << endl;
return 0;
}