結果

問題 No.3033 Test of Russian
ユーザー 007p99lupin007p99lupin
提出日時 2018-04-02 00:48:28
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 513 ms
コンパイル使用メモリ 57,496 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-08 13:12:02
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 WA -
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 WA -
testcase_07 AC 1 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <algorithm>
using namespace std;

int main()
{
	int N,M,X;
	cin>>N>>M>>X;
	int uso,nokori;
	uso = N-M;
	nokori = N-X;
	if((uso==0)&&(nokori>=3)){
		cout<<"YES"<<endl;
		return 0;
	}
	else if((uso==0)&&(nokori<=2)){
		cout<<"NO"<<endl;
		return 0;
	}
	
	if((M>=nokori)&&(M>=3)){
		cout<<"YES"<<endl;
	}
	else{
		cout<<"NO"<<endl;
	}
	return 0;
}
0