結果
問題 | No.201 yukicoderじゃんけん |
ユーザー |
![]() |
提出日時 | 2023-07-21 18:50:38 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 721 bytes |
コンパイル時間 | 4,151 ms |
コンパイル使用メモリ | 264,092 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-21 20:28:31 |
合計ジャッジ時間 | 4,929 ms |
ジャッジサーバー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;}}