Submission #286710


Source Code Expand

Copy
#include <iostream>
using namespace std;

int main(){
    int n,k;
    cin >> n >> k;
    if(k == 1){
        cout << "YES\n";
    }else{
        if(k <= n/2){
            cout << "YES\n";
        }else{
            cout << "NO\n";
        }
    }
    return 0;
}
#include <iostream>
using namespace std;

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

Submission Info

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

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:21:5: error: redefinition of ‘int main()’
./Main.cpp:4:5: error: ‘int main()’ previously defined here