結果

問題 No.285 消費税2
ユーザー Yut176
提出日時 2017-06-29 18:08:27
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 486 bytes
コンパイル時間 901 ms
コンパイル使用メモリ 89,008 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-04 16:46:23
合計ジャッジ時間 1,617 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cstdlib>
#include<vector>
#include<string>
#include<sstream>
#include<cmath>
#include<numeric>
#include<map>
#include<stack>
#include<queue>
#include<list>
using namespace std;
int inf = 1000000000;

int main(void) {

  long long int d;
  cin >> d;
  d *= 108;
  string s = to_string(d);
  for(int i=0; i<s.size(); i++){
    cout << s[i];
    if( i == s.size()-3 ) cout << '.';
  }
  cout << endl;

  return 0;
}

// EOF
0