結果

問題 No.285 消費税2
ユーザー SSRS
提出日時 2020-08-06 07:50:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 614 ms
コンパイル使用メモリ 64,640 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-19 05:22:49
合計ジャッジ時間 1,300 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;
int main(){
	long long D;
	cin >> D;
	string S = to_string(D * 108);
	cout << S.substr(0, S.size() - 2) << '.' << S.substr(S.size() - 2) << endl;
}
0