結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-09 06:36:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 359 bytes |
| コンパイル時間 | 762 ms |
| コンパイル使用メモリ | 72,448 KB |
| 最終ジャッジ日時 | 2025-01-09 15:17:08 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <iomanip>
using lint = long long;
void solve() {
lint d;
std::cin >> d;
d *= 108;
std::cout << d / 100 << "."
<< std::setw(2) << std::setfill('0') << d % 100
<< std::endl;
}
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
solve();
return 0;
}