結果
問題 |
No.1129 Rating じゃんけん
|
ユーザー |
|
提出日時 | 2021-08-27 01:00:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 644 bytes |
コンパイル時間 | 2,190 ms |
コンパイル使用メモリ | 158,628 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-19 00:25:17 |
合計ジャッジ時間 | 2,292 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
#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>c) 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; }