結果
問題 |
No.285 消費税2
|
ユーザー |
![]() |
提出日時 | 2018-09-11 23:29:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 1,501 ms |
コンパイル使用メモリ | 162,800 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-24 10:17:38 |
合計ジャッジ時間 | 2,304 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; #define INF 1000000000 #define MOD 1000000007 using namespace std; int main(void){ ll d; cin>>d; d*=108; string ans=to_string(d); ans=ans.substr(0,ans.size()-2)+'.'+ans.substr(ans.size()-2); cout<<ans<<endl; }