結果
問題 | No.285 消費税2 |
ユーザー |
|
提出日時 | 2018-06-18 14:26:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 240 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 63,360 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-30 16:53:09 |
合計ジャッジ時間 | 1,363 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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("%llf\n",d); } return 0; }