結果

問題 No.218 経験値1.5倍
ユーザー itezpaceitezpace
提出日時 2016-06-22 07:55:03
言語 C++11
(gcc 11.4.0)
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 307 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 58,104 KB
最終ジャッジ日時 2024-04-27 02:21:06
合計ジャッジ時間 872 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。

コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:14:5: error: ‘ceil’ was not declared in this scope
   14 |   x=ceil(d);
      |     ^~~~

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <iomanip>
using namespace std;

int main(){
  double a,b,c,d,e,f,g;
  int x,y;
  cin>>a;
  cin>>b;
  cin>>c;
  d=a/b;
  e=a/c;
  x=ceil(d);
  y=ceil(e);
  f=x*2/3;
  g=y;
  if(f>=g){
    cout<<"YES"<<endl;
  } else {
    cout<<"NO"<<endl;
  }
  return 0;
}
0