結果

問題 No.285 消費税2
ユーザー ohreitetsu
提出日時 2018-06-18 14:33:46
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 251 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 63,196 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-30 16:53:18
合計ジャッジ時間 1,325 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 2
other AC * 1 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <stdio.h>
using namespace std;
typedef long long LL;
int main(int argc, char* argv[])
{
	LL D;
	cin>>D;
	double d=(D*100+8*D)/100.0;
	if (d==(LL)d){
		printf("%lld\n",(LL)d);
	}else{
		printf("%.2llf\n",d);
	}
	return 0;
}
0