結果
| 問題 |
No.285 消費税2
|
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2016-05-04 22:03:47 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 365 bytes |
| コンパイル時間 | 878 ms |
| コンパイル使用メモリ | 90,068 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-11 00:28:16 |
| 合計ジャッジ時間 | 2,122 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 26 |
ソースコード
#include <iostream>
#include <cmath>
#include <string>
#include <vector>
#include <map>
#include <list>
#include <deque>
#include <algorithm>
#include <iomanip>
using namespace std;
int main() {
long long D;
cin >> D;
D *= 108;
long long ansA = D / 100;
long long ansB = D % 100;
cout << ansA << '.'<< setw(2) << setfill('0') << ansB << endl;
return 0;
}
ant2357