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