結果

問題 No.218 経験値1.5倍
ユーザー tnoda_
提出日時 2015-07-16 00:56:21
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 810 bytes
コンパイル時間 888 ms
コンパイル使用メモリ 82,784 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-29 15:16:55
合計ジャッジ時間 1,825 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>
#include <list>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <string>
#include <utility>
#include <algorithm>
#include <numeric>
#include <functional>

#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
#define ALL(a) (a).begin(),(a).end()

using namespace std;
typedef long long ll;

int main(int argc, char *argv[])
{
  cin.tie(0);
  ios::sync_with_stdio(false);

  int a, b, c, p, q;
  string ans = "NO";

  cin >> a >> b >> c;
  p = a / b;
  if (a % b > 0) p++;
  q = a / c;
  if (a % c > 0) q++;
  if (p >= 1.5 * q)
    ans = "YES";
  cout << ans << endl;

  return 0;
}
0