結果

問題 No.1129 Rating じゃんけん
ユーザー nao109nao109
提出日時 2021-08-27 00:58:49
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 644 bytes
コンパイル時間 1,330 ms
コンパイル使用メモリ 157,692 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-29 18:21:08
合計ジャッジ時間 2,168 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
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 1 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 1 ms
5,376 KB
testcase_13 AC 1 ms
5,376 KB
testcase_14 AC 1 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 WA -
testcase_17 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,c,d,ans=0;
    cin >> a >> b >> c >> d;
    if(a!=c){
        if(a>b) ans=0;
        else ans=1;
    }
    else{
        if(b==0){
            if(d==0) ans=2;
            else if(d==1) ans=0;
            else ans=1;
        }
        else if(b==1){
            if(d==0) ans=1;
            else if(d==1) ans=2;
            else ans=0;
        }
        else{
            if(d==0) ans=0;
            else if(d=1) ans=1;
            else ans=2;
        }
    }
    if(ans==0) cout << "null" << endl;
    else if(ans==1) cout << "tRue" << endl;
    else cout << "Draw" << endl;
}
0