結果

問題 No.285 消費税2
ユーザー Naoyk1212
提出日時 2016-10-15 13:16:57
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 1,389 ms
コンパイル使用メモリ 160,248 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-22 11:29:00
合計ジャッジ時間 2,347 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

string NumToString(long long num){
  stringstream ss;
  ss << num;
  return ss.str();
}

int main(){
  long long d;
  cin >> d;
  long long ans = d * 108;
  string str = NumToString(ans);
  for(int i = 0; i < str.length(); i++){
    if(i == str.length() - 2)cout << ".";
    cout << str[i];
  }
  cout << endl;
}
0