結果

問題 No.285 消費税2
ユーザー fura
提出日時 2020-03-31 11:04:12
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 3,468 ms
コンパイル使用メモリ 195,144 KB
最終ジャッジ日時 2025-01-09 11:18:58
ジャッジサーバーID
(参考情報)
judge1 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(n);i++)

using namespace std;
using lint=long long;

int main(){
	lint n; cin>>n;
	string s=to_string(n*108);
	cout<<s.substr(0,s.length()-2)+"."+s.substr(s.length()-2)<<'\n';
	return 0;
}
0