結果
| 問題 | No.285 消費税2 |
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2016-05-04 22:03:47 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 373µs | |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 455 ms |
| コンパイル使用メモリ | 103,972 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-13 14:44:25 |
| 合計ジャッジ時間 | 2,266 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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