Submission #1709289


Source Code Expand

#include<iostream>
using namespace std;
int main(){
  int n, k;
  cin >> n >> k;

  int a=n-1;
  int counter1=0
  while(a-2>0){
    counter1++;
    a-=2;
  }

  if(counter1>=k)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;

}

Submission Info

Submission Time
Task A - 閉路グラフ
User miyamoyamo
Language C++14 (GCC 5.4.1)
Score 0
Code Size 240 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:9:3: error: expected ‘,’ or ‘;’ before ‘while’
   while(a-2>0){
   ^