結果
問題 | No.1129 Rating じゃんけん |
ユーザー |
![]() |
提出日時 | 2020-07-29 06:48:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 552 bytes |
コンパイル時間 | 3,237 ms |
コンパイル使用メモリ | 191,100 KB |
最終ジャッジ日時 | 2025-01-12 07:29:25 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int A, B, C, D; cin >> A >> B >> C >> D; if (A != C) { cout << (max(A, C) == A ? "null" : "tRue") << '\n'; } else { auto f = [](int a, int b) { if (a == 0 && b == 1) return true; if (a == 1 && b == 2) return true; if (a == 2 && b == 0) return true; return false; }; if (B == D) { cout << "Draw" << '\n'; } else { cout << (f(B, D) ? "null" : "tRue") << '\n'; } } return 0; }