結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2018-02-20 23:23:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 747 ms |
コンパイル使用メモリ | 69,504 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-13 13:04:42 |
合計ジャッジ時間 | 1,670 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include<iostream> #include<vector> #include<algorithm> #include<string> using namespace std; int main(){ long long D; cin >> D; D *= 108; string s = to_string(D); for(int i=0;i<s.size()-2;i++){ cout << s[i]; } cout << "." << s[s.size()-2] << s[s.size()-1] << endl; return 0; }