結果

問題 No.1129 Rating じゃんけん
ユーザー kkkk97368086kkkk97368086
提出日時 2021-11-24 18:01:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 620 bytes
コンパイル時間 1,901 ms
コンパイル使用メモリ 163,660 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-09 10:43:19
合計ジャッジ時間 2,739 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
    int a,b,c,d;
    cin >> a >> b >> c >> d;
    if(a > c) cout << "null" << endl;
    else if(c < a) cout << "tRue" << endl;
    else{
        if(b == d) cout << "Draw" << endl;
        else if(b==0){
            if(d==1) cout << "null" << endl;
            else if(d==2) cout << "tRue" << endl;
        }
        else if(b==1){
            if(d==0) cout << "tRue" << endl;
            else if(d==2) cout << "null" << endl;
        }
        else{
            if(d==0) cout << "null" << endl;
            else if(d==1) cout << "tRue" << endl;
        }
    }
}
0