結果
問題 |
No.201 yukicoderじゃんけん
|
ユーザー |
![]() |
提出日時 | 2023-07-21 18:50:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 721 bytes |
コンパイル時間 | 4,538 ms |
コンパイル使用メモリ | 252,564 KB |
最終ジャッジ日時 | 2025-02-15 16:10:32 |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 20 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace atcoder; using namespace std; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll mod=1000000007; ld inf=10000999999999900; int main(){ vector<string>s(2),x(2); vector<string>p(2); for (ll i = 0; i < 2; i++) { cin >> s[i] >> p[i] >> x[i]; } if (p[0].size()>p[1].size()) { cout << s[0] << endl; return 0; }else if (p[0].size()<p[1].size()) { cout << s[1] << endl; return 0; } if (p[0]>p[1]) { cout << s[0] << endl; }else if (p[0]==p[1]) { cout << -1 << endl; }else{ cout << s[1] << endl; } }