結果
| 問題 | 
                            No.201 yukicoderじゃんけん
                             | 
                    
| コンテスト | |
| ユーザー | 
                             158b
                         | 
                    
| 提出日時 | 2015-05-14 23:31:24 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 590 bytes | 
| コンパイル時間 | 455 ms | 
| コンパイル使用メモリ | 62,552 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-07-06 03:46:29 | 
| 合計ジャッジ時間 | 973 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 20 | 
ソースコード
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>
#include <limits.h>
using namespace std;
int main(){
	string name[2];
	string score[2];
	string te[2];
	cin >> name[0] >> score[0] >> te[0];
	cin >> name[1] >> score[1] >> te[1];
	
	if(score[0].length() > score[1].length()){
		cout << name[0] << endl;
	}else if(score[0].length() < score[1].length()){
		cout << name[1] << endl;
	}else{
		if(score[0] > score[1]){
			cout << name[0] << endl;
		}else if(score[0] < score[1]){
			cout << name[1] << endl;
		}else{
			cout << -1 << endl;
		}
	}
	
	return 0;
}
            
            
            
        
            
158b