結果

問題 No.201 yukicoderじゃんけん
ユーザー mits58mits58
提出日時 2016-06-05 18:01:36
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 2,004 ms
コンパイル使用メモリ 74,164 KB
実行使用メモリ 54,384 KB
最終ジャッジ日時 2024-04-17 05:02:37
合計ジャッジ時間 5,263 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,156 KB
testcase_01 AC 118 ms
41,128 KB
testcase_02 AC 118 ms
40,912 KB
testcase_03 AC 120 ms
40,780 KB
testcase_04 WA -
testcase_05 AC 115 ms
41,128 KB
testcase_06 AC 118 ms
41,104 KB
testcase_07 AC 107 ms
40,348 KB
testcase_08 AC 108 ms
39,940 KB
testcase_09 AC 121 ms
41,100 KB
testcase_10 AC 120 ms
41,096 KB
testcase_11 AC 113 ms
40,256 KB
testcase_12 AC 112 ms
39,844 KB
testcase_13 AC 120 ms
41,360 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 149 ms
41,244 KB
testcase_17 AC 149 ms
41,124 KB
testcase_18 AC 148 ms
41,368 KB
testcase_19 AC 138 ms
41,500 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			String a=sc.next();	String pa=sc.next(); sc.next();
			String b=sc.next(); String pb=sc.next(); sc.next();
			if(pa.compareTo(pb)<0) System.out.println(b);
			else if(pa.compareTo(pb)>0) System.out.println(a);
			else System.out.println(-1);
		}
	}
}
0