結果
| 問題 |
No.218 経験値1.5倍
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-22 16:36:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 298 bytes |
| コンパイル時間 | 550 ms |
| コンパイル使用メモリ | 53,408 KB |
| 最終ジャッジ日時 | 2024-11-14 19:03:37 |
| 合計ジャッジ時間 | 1,071 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:11: error: ‘ceil’ was not declared in this scope
8 | int x = ceil((double)a / b);
| ^~~~
ソースコード
#include <iostream>
#include <algorithm>
using namespace std;
int main(void) {
int a, b, c;
cin >> a >> b >> c;
int x = ceil((double)a / b);
int y = ceil((double)a / c);
string res;
if((double)x * 2 / 3 >= y) { res = "YES"; }
else { res = "NO"; }
cout << res << endl;
return 0;
}