結果

問題 No.3033 Test of Russian
ユーザー ミドリムシミドリムシ
提出日時 2018-04-02 00:49:54
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 402 bytes
コンパイル時間 644 ms
コンパイル使用メモリ 68,368 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-08 13:12:07
合計ジャッジ時間 1,203 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;

#define YES(i) if(i) cout << "YES" << endl; else cout << "NO" << endl

int main(){
    int N, M, X;
    cin >> N >> M >> X;
    if(M >= X && N - M >= X){
        YES(M >= 3 && N - M >= 3);
    }else if(M >= X){
        YES(M >= 3);
    }else if(N - M >= 3){
        YES(N - M >= 3);
    }else{
        YES(true);
    }
}
0