結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
Ygg13_iRO
|
| 提出日時 | 2014-11-04 23:58:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 248 bytes |
| コンパイル時間 | 836 ms |
| コンパイル使用メモリ | 69,264 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-30 17:35:12 |
| 合計ジャッジ時間 | 1,732 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 5 WA * 18 |
ソースコード
#include <iostream>
#include <algorithm>
#include <cmath>
#include <iomanip>
using namespace std;
int main(){
long double D, P, A;
cin >> D >> P;
A = (int)(floor(D + (D*(P / 100))));
cout << A << setprecision(10) <<endl;
}
Ygg13_iRO