結果
問題 | No.285 消費税2 |
ユーザー |
|
提出日時 | 2018-06-18 14:27:19 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 64,448 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 16:53:11 |
合計ジャッジ時間 | 1,347 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 2 |
other | AC * 1 WA * 25 |
ソースコード
#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+(8*D)/100.0; if (d==(LL)d){ cout<<(LL)d<<endl; }else{ printf("%.2llf\n",d); } return 0; }