結果

問題 No.201 yukicoderじゃんけん
ユーザー fal_rndfal_rnd
提出日時 2017-08-25 23:42:46
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 619 bytes
コンパイル時間 2,529 ms
コンパイル使用メモリ 79,212 KB
実行使用メモリ 41,740 KB
最終ジャッジ日時 2024-04-23 15:48:29
合計ジャッジ時間 6,060 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
41,444 KB
testcase_01 AC 136 ms
41,268 KB
testcase_02 AC 132 ms
41,456 KB
testcase_03 AC 137 ms
41,464 KB
testcase_04 WA -
testcase_05 AC 132 ms
41,700 KB
testcase_06 AC 134 ms
41,704 KB
testcase_07 AC 129 ms
41,436 KB
testcase_08 AC 137 ms
41,608 KB
testcase_09 AC 138 ms
41,512 KB
testcase_10 AC 133 ms
41,656 KB
testcase_11 AC 134 ms
41,504 KB
testcase_12 AC 132 ms
41,408 KB
testcase_13 AC 133 ms
41,508 KB
testcase_14 AC 135 ms
41,552 KB
testcase_15 AC 167 ms
41,608 KB
testcase_16 AC 165 ms
41,504 KB
testcase_17 AC 177 ms
41,584 KB
testcase_18 AC 165 ms
41,740 KB
testcase_19 AC 165 ms
41,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class Main{
	static IntStream REPS(int v){return IntStream.range(0,v);}
	static IntStream REPS(int l,int r){return IntStream.rangeClosed(l,r);}
	static IntStream INS(int n) {return REPS(n).map(i->getInt());}
	static Scanner s=new Scanner(System.in);
	static int getInt(){return Integer.parseInt(s.next());}

	public static void main(String[]$){
		String na=s.next();
		String a=s.next();
		s.next();
		String nb=s.next();
		String b=s.next();
		System.out.println(
				a.equals(b)?-1
						:a.length()>b.length()||a.compareTo(b)>0
						?na:nb);
	}
}
0