結果

問題 No.1129 Rating じゃんけん
ユーザー chacoder1
提出日時 2020-11-21 15:51:32
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 387 bytes
コンパイル時間 1,987 ms
コンパイル使用メモリ 191,960 KB
最終ジャッジ日時 2025-01-16 04:00:44
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

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;
    return 0;
  }
  if(c>a){
    cout<<"tRue "<<endl;
    return 0;
  }
  if(b==d){
    cout<<"Draw"<<endl;
    return 0;
  }
  if((b==0 && d==1)||(b==1 && d==2)||(b==2 && d==0)){
    cout<<"null"<<endl;
    return 0;
  }
  cout<<"tRue "<<endl;
  return 0;
}
0