結果

問題 No.201 yukicoderじゃんけん
コンテスト
ユーザー 158b
提出日時 2015-05-03 23:30:34
言語 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  
実行時間 -
コード長 453 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,586 ms
コンパイル使用メモリ 70,384 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-27 01:59:51
合計ジャッジ時間 6,692 ms
ジャッジサーバーID
(参考情報)
judge2_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
using namespace std;

int main(){

	char name[2][102];
	char point[2][10002] = {0};
	char te[2][10];
	
	for(int i=0; i<2; i++){
		cin >> name[i];
		cin >> point[i];
		cin >> te[i];
	}
	
	
	int i = 0;
	while(point[0][i] == point[1][i] && i < 10002){
		i++;
	}
	
	if(point[0][i] > point[1][i]){
		cout << name[0] << endl;
	}else if(point[0][i] < point[1][i]){
		cout << name[1] << endl;
	}else{
		cout << -1 << endl;
	}
	
	
	return 0;
}
0