結果
| 問題 |
No.56 消費税
|
| コンテスト | |
| ユーザー |
tntan
|
| 提出日時 | 2015-12-15 06:44:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 537 ms |
| コンパイル使用メモリ | 64,176 KB |
| 最終ジャッジ日時 | 2024-11-14 19:30:48 |
| 合計ジャッジ時間 | 1,103 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:16:13: error: ‘floor’ was not declared in this scope
16 | q = floor(d*(p / 100));
| ^~~~~
ソースコード
#include<iostream>
#include<string>
#include<fstream>
#include<iomanip>
#include<vector>
#include<cctype>
#include<algorithm>
#include<sstream>
using namespace std;
int main()
{
double d, p, q;
long long a, b;
cin >> d >> p;
q = floor(d*(p / 100));
a = (long long)d;
b = (long long)q;
cout << a + b << endl;
return 0;
}
tntan