結果

問題 No.201 yukicoderじゃんけん
ユーザー willowoooo
提出日時 2015-05-03 23:38:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 470 ms
コンパイル使用メモリ 58,236 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 17:26:03
合計ジャッジ時間 1,247 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 9 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<algorithm>
#include<string>

using namespace std;

void solve1(){
	string a, b;
	int Pa, Pb;
	string Xa, Xb;
	cin >> a >> Pa >> Xa;
	cin >> b >> Pb >> Xb;

	
	if (Pa == Pb)
		cout << "-1" << endl;
	if (Pa > Pb)
		cout << a << endl;
	else
		cout << b << endl;
		
}


int main(){
	solve1();
	return 0;
}
0