結果
問題 |
No.1129 Rating じゃんけん
|
ユーザー |
|
提出日時 | 2021-08-27 00:58:49 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 644 bytes |
コンパイル時間 | 3,203 ms |
コンパイル使用メモリ | 157,900 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-19 00:23:35 |
合計ジャッジ時間 | 2,068 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 8 WA * 8 |
ソースコード
#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; }