結果
| 問題 |
No.1129 Rating じゃんけん
|
| ユーザー |
東前頭十一枚目
|
| 提出日時 | 2020-08-07 02:45:04 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 332 bytes |
| コンパイル時間 | 1,960 ms |
| コンパイル使用メモリ | 193,336 KB |
| 最終ジャッジ日時 | 2025-01-12 15:37:23 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 16 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int a, b, c, d; cin >> a >> b >> c >> d;
string ans = "Draw";
if(a > c) {
ans = "null";
} else if(a < c) {
ans = "tRue";
} else {
if((b + 1) % 3 == d) {
ans = "null";
} else if((d + 1) % 3 == b) {
ans = "tRue";
}
}
cout << ans << '\n';
return 0;
}
東前頭十一枚目