結果
問題 | No.285 消費税2 |
ユーザー |
|
提出日時 | 2018-06-18 14:42:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 329 bytes |
コンパイル時間 | 467 ms |
コンパイル使用メモリ | 65,456 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 16:53:59 |
合計ジャッジ時間 | 1,345 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
#include <iostream> #include <stdio.h> #include <string.h> using namespace std; typedef long long LL; int main(int argc, char* argv[]) { LL D; cin>>D; LL d=D*100+8*D; char x[100]; sprintf(x,"%lld",d); int len=strlen(x); for (int i=0;i<len;i++){ if (i==len-2){ cout<<"."; } cout<<x[i]; } cout<<endl; return 0; }