結果
問題 |
No.1129 Rating じゃんけん
|
ユーザー |
|
提出日時 | 2022-03-14 21:35:16 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 707 bytes |
コンパイル時間 | 1,602 ms |
コンパイル使用メモリ | 166,512 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-21 09:45:44 |
合計ジャッジ時間 | 2,657 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i = 0; i < n; i++) #define srep(i,a,b) for(int i = a; i < b; i++) #define all(A) (A).begin(),A.end() #define MOD 1000000007 using namespace std; using ll = long long; using P = pair<char,int>; using Graph = vector<vector<int>>; int main(void){ int a,b,c,d; cin >> a >> b >> c >> d; string ans = ""; if(a > c) ans = "null"; else if(a < c) ans = "tRue"; else { if(b == d) ans = "Draw"; else { if(b == 0 && d == 1) ans = "null"; else if(b == 1 && d == 2) ans = "null"; else if(b == 2 && d == 0) ans = "null"; else if(b == 0 && d == 2) ans = "tRue"; else if(b == 1 && d == 0) ans = "tRue"; else ans = "tRue"; } } cout << ans; }