Submission #286602


Source Code Expand

Copy
#include <iostream>
#include <sstream>
#include <cstdio>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <list>
#include <stack>
#include <queue>
#include <cstdlib>
#include <tuple>
#define INF 1e9
#define EPS 1e-9
using namespace std;

typedef list<int> L;
typedef pair <int,int> P;
typedef vector<int> V;
typedef queue<int> Q;
typedef stack<int> S;
typedef map<string,int> M;

int main()
{
    int n, k;
    cin >> n >> k;
    if (n == 1) {
	cout << "YES" << endl;
    }
    else {
        if (((n-1) / 2) - k >= 0) {
            cout << "YES" << endl;
	} else {
            cout << "NO" << endl;
	}
    }

    return 0;
}

Submission Info

Submission Time
Task A - 閉路グラフ
User wanimaru47
Language C++ (G++ 4.6.4)
Score 0
Code Size 719 Byte
Status CE

Compile Error

In file included from /usr/include/c++/4.6/tuple:35:0,
                 from ./Main.cpp:13:
/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.