結果

問題 No.201 yukicoderじゃんけん
ユーザー nCk_cvnCk_cv
提出日時 2015-08-03 02:30:02
言語 Java21
(openjdk 21)
結果
AC  
実行時間 183 ms / 5,000 ms
コード長 507 bytes
コンパイル時間 1,926 ms
コンパイル使用メモリ 71,564 KB
実行使用メモリ 56,784 KB
最終ジャッジ日時 2023-09-25 00:41:38
合計ジャッジ時間 5,798 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,860 KB
testcase_01 AC 115 ms
55,700 KB
testcase_02 AC 119 ms
55,708 KB
testcase_03 AC 126 ms
55,668 KB
testcase_04 AC 125 ms
56,084 KB
testcase_05 AC 122 ms
56,272 KB
testcase_06 AC 122 ms
55,972 KB
testcase_07 AC 121 ms
55,856 KB
testcase_08 AC 124 ms
55,828 KB
testcase_09 AC 125 ms
55,660 KB
testcase_10 AC 124 ms
55,336 KB
testcase_11 AC 124 ms
55,760 KB
testcase_12 AC 121 ms
55,408 KB
testcase_13 AC 124 ms
55,908 KB
testcase_14 AC 122 ms
55,992 KB
testcase_15 AC 183 ms
56,532 KB
testcase_16 AC 181 ms
56,784 KB
testcase_17 AC 178 ms
56,584 KB
testcase_18 AC 177 ms
56,300 KB
testcase_19 AC 180 ms
56,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.*;
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String A = sc.next();
		BigInteger a = new BigInteger(sc.next());
		String X = sc.next();
		String B = sc.next();
		BigInteger b = new BigInteger(sc.next());
		X = sc.next();
		
		if(a.compareTo(b) == 1) {
			System.out.println(A);
		}
		else if(a.compareTo(b) == -1) {
			System.out.println(B);
		}
		else {
			System.out.println(-1);
		}
		
		
		
		
		
		
	}
}
0