結果

問題 No.201 yukicoderじゃんけん
ユーザー k
提出日時 2020-06-12 22:53:06
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 379 bytes
コンパイル時間 1,831 ms
コンパイル使用メモリ 192,748 KB
最終ジャッジ日時 2025-01-11 02:51:23
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

#define REP(i,n) for(int i=0; i<(int)(n); i++)

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);

  string s1, s2;
  int p1, p2;
  char _;

  cin >> s1 >> p1 >> _;
  cin >> s2 >> p2 >> _;

  if (p1 == p2)
    cout << -1 << endl;
  else if (p1 > p2)
    cout << s1 << endl;
  else
    cout << s2 << endl;
  
  return 0;
}
0