結果

問題 No.285 消費税2
ユーザー はまやんはまやん
提出日時 2016-04-24 13:29:55
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 1,541 ms
コンパイル使用メモリ 161,032 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 15:36:30
合計ジャッジ時間 2,054 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)

typedef long long ll;

int main()
{
	ll D; cin >> D;
	D *= 108;
	string ans = to_string(D);
	cout << ans.substr(0, ans.length()-2) << "." << ans.substr(ans.length()-2);
}
0