結果

問題 No.285 消費税2
ユーザー parsee1053
提出日時 2020-07-05 02:33:07
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 493 bytes
コンパイル時間 805 ms
コンパイル使用メモリ 73,660 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-20 07:01:19
合計ジャッジ時間 1,901 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define MOD 1000000007

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