結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
kichirb3
|
| 提出日時 | 2018-03-04 17:28:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 456 bytes |
| コンパイル時間 | 624 ms |
| コンパイル使用メモリ | 70,912 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-08 07:19:39 |
| 合計ジャッジ時間 | 1,430 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
// No.285 消費税2
// https://yukicoder.me/problems/no/285
//
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
using namespace std;
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
long double D;
cin >> D;
stringstream ss;
ss << fixed << setprecision(20) << D * 1.08 << endl;
string ans = ss.str();
auto pos = ans.find('.');
cout << ans.substr(0, pos+3) << endl;
}
kichirb3