結果

問題 No.1129 Rating じゃんけん
ユーザー UGLOUGLO
提出日時 2020-08-23 18:06:21
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 511 bytes
コンパイル時間 1,604 ms
コンパイル使用メモリ 161,792 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-23 18:11:21
合計ジャッジ時間 2,311 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); ++i)

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