結果

問題 No.285 消費税2
ユーザー masakiGit
提出日時 2019-04-23 17:15:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 630 ms
コンパイル使用メモリ 65,628 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 00:11:59
合計ジャッジ時間 1,544 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main() {
  long long d;
  cin >> d;

  string moji = to_string(d * 108);
  int nagasa = moji.length();
  cout << moji.substr(0, nagasa - 2) << "." << moji.substr(nagasa - 2) << endl;
  return 0;
}
0