結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-25 22:23:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 507 bytes |
| コンパイル時間 | 1,032 ms |
| コンパイル使用メモリ | 103,952 KB |
| 最終ジャッジ日時 | 2025-01-18 08:19:52 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 WA * 10 |
ソースコード
#include <algorithm>
#include <array>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <numeric>
#include <optional>
#include <queue>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main() {
string sa, sb, xa, xb;
int32_t pa, pb;
cin >> sa >> pa >> xa >> sb >> pb >> xb;
string ans;
if (pa == pb)
ans = "-1";
else if (pa > pb)
ans = sa;
else
ans = sb;
cout << ans << endl;
return 0;
}