結果

問題 No.201 yukicoderじゃんけん
コンテスト
ユーザー hanorver
提出日時 2015-08-24 22:04:30
言語 C++11
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 451 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 305 ms
コンパイル使用メモリ 71,004 KB
実行使用メモリ 78,848 KB
最終ジャッジ日時 2026-04-02 06:18:49
合計ジャッジ時間 928 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<string>

int main() {
	std::string player1, player2;
	int player1_point, player2_point;
	char player1_te, player2_te;

	std::cin >> player1 >> player1_point >> player1_te;
	std::cin >> player2 >> player2_point >> player2_te;

	if (player1_point == player2_point) std::cout << -1 << std::endl;
	else if (player1_point > player2_point) std::cout << player1 << std::endl;
	else std::cout << player2 << std::endl;

	return 0;
}
0