結果

問題 No.201 yukicoderじゃんけん
ユーザー IchimiyaIchimiya
提出日時 2020-07-19 23:33:05
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 453 bytes
コンパイル時間 1,328 ms
コンパイル使用メモリ 164,352 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-08-22 17:51:03
合計ジャッジ時間 2,266 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 1 ms
4,380 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 1 ms
4,376 KB
testcase_11 AC 1 ms
4,380 KB
testcase_12 AC 2 ms
4,380 KB
testcase_13 WA -
testcase_14 AC 2 ms
4,380 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 2 ms
4,380 KB
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define PI 3.14159265359
using namespace std;
const int64_t mod = 1e9 + 7;

int main() {
	string Sa, Sb, Pa, Pb, Xa, Xb;
	cin >> Sa >> Pa >> Xa;
	cin >> Sb >> Pb >> Xb;

	if (Pa.size() == Pb.size()) {
		if (Pa == Pa) {
			cout << -1 << endl;
		}
		else if (Pa > Pb) {
			cout << Sa << endl;
		}
		else {
			cout << Sb << endl;
		}
	}
	else if (Pa.size() > Pb.size()) {
		cout << Sa << endl;
	}
	else {
		cout << Sb << endl;
	}
}
0