結果
| 問題 | 
                            No.201 yukicoderじゃんけん
                             | 
                    
| コンテスト | |
| ユーザー | 
                             hokto
                         | 
                    
| 提出日時 | 2019-01-08 17:50:55 | 
| 言語 | C++17(clang)  (17.0.6 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 503 bytes | 
| コンパイル時間 | 651 ms | 
| コンパイル使用メモリ | 121,472 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-11-30 13:17:38 | 
| 合計ジャッジ時間 | 1,473 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 WA * 10 | 
ソースコード
#include<iostream>
#include<vector>
#include<string>
class Player
{
public:
	std::string name;
	long long int point;
	char hand;
};
int main()
{
	std::vector<Player> player(2);
	for (int i = 0;i < 2;i++)
	{
		std::cin >> player[i].name;
		std::cin >> player[i].point;
		std::cin >> player[i].hand;
	}
	if (player[0].point > player[1].point)
	{
		std::cout << player[0].name;
	}
	else if (player[0].point < player[1].point)
	{
		std::cout << player[1].name;
	}
	else
	{
		std::cout << -1;
	}
	return 0;
}
            
            
            
        
            
hokto