結果

問題 No.201 yukicoderじゃんけん
ユーザー kaoetayakaoetaya
提出日時 2016-12-01 16:05:22
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 548 bytes
コンパイル時間 3,397 ms
コンパイル使用メモリ 78,448 KB
実行使用メモリ 56,000 KB
最終ジャッジ日時 2024-11-27 15:50:49
合計ジャッジ時間 7,065 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 RE * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Human{
	String name;
	int point;
	String hands;
}

public class pre {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
		Human a = new Human();
		a.name = s.next();
		a.point = s.nextInt();
		a.hands = s.next();
		Human b = new Human();
		b.name = s.next();
		b.point = s.nextInt();
		b.hands = s.next();
		
		if(a.point > b.point){
			System.out.println(a.name);
		}
		else if(a.point < b.point){
			System.out.println(b.name);
		}
		else{
			System.out.println("-1");
		}
    }
}
0