Submission #286416
Source Code Expand
#define _USE_MATH_DEFINES #include <algorithm> #include <cstdio> #include <functional> #include <iostream> #include <cfloat> #include <climits> #include <cstring> #include <cmath> #include <map> #include <queue> #include <random> #include <set> #include <sstream> #include <stack> #include <string> #include <time.h> #include <vector> using namespace std; typedef long long ll; typedef unsigned long long ull; typedef pair<int, int> i_i; typedef pair<ll, int> ll_i; typedef pair<double, int> d_i; typedef pair<ll, ll> ll_ll; typedef pair<double, double> d_d; struct edge { int u, v; ll w; }; ll MOD = 1000000007; ll _MOD = 1000000009; double EPS = 1e-10; int main() { int n, k; cin >> n >> k; if (k == 1) { cout << "YES" << endl; return 0; } if (n >= k * 2) { cout << "YES" << endl; } else cout << "NO" << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - 閉路グラフ |
User | sugim48 |
Language | C++ (G++ 4.6.4) |
Score | 0 |
Code Size | 874 Byte |
Status | CE |
Compile Error
In file included from /usr/include/c++/4.6/random:35:0, from ./Main.cpp:12: /usr/include/c++/4.6/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.