結果

問題 No.201 yukicoderじゃんけん
ユーザー Grenache
提出日時 2015-11-03 12:26:03
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 653 bytes
コンパイル時間 3,403 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 55,964 KB
最終ジャッジ日時 2024-09-13 12:04:48
合計ジャッジ時間 7,092 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder201 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String[] s = new String[2];
        String[] p = new String[2];
        String[] x = new String[2];
        for (int i = 0; i < 2; i++) {
        	s[i] = sc.next();
        	p[i] = sc.next();
        	x[i] = sc.next();
        }

        int res = p[0].compareTo(p[1]);
        if (res > 0) {
        	System.out.println(s[0]);
        } else if (res < 0) {
        	System.out.println(s[1]);
        } else {
        	System.out.println("-1");
        }
        
        sc.close();
    }
}
0