結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-18 11:26:54 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 301 bytes |
| コンパイル時間 | 1,749 ms |
| コンパイル使用メモリ | 192,904 KB |
| 最終ジャッジ日時 | 2025-01-14 16:06:11 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int s1, s2;
string p1, p2, s;
void input() { cin >> p1 >> s1 >> s >> p2 >> s2 >> s; }
void solve() {
cout << ((s1 == s2) ? ("-1") : ((s1 > s2) ? (p1) : (p2))) << endl;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
input();
solve();
}