結果

問題 No.201 yukicoderじゃんけん
ユーザー mamekin
提出日時 2015-07-21 23:47:15
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 679 bytes
コンパイル時間 662 ms
コンパイル使用メモリ 91,780 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-08 11:43:16
合計ジャッジ時間 1,433 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
using namespace std;

int main()
{
    string sa, pa, xa, sb, pb, xb;
    cin >> sa >> pa >> xa >> sb >> pb >> xb;

    if(pa == pb)
        cout << -1 << endl;
    else if(pa.size() < pb.size() || (pa.size() == pb.size() && pa < pb))
        cout << sb << endl;
    else
        cout << sa << endl;

    return 0;
}
0