結果

問題 No.201 yukicoderじゃんけん
ユーザー jimanojimano
提出日時 2018-02-06 13:11:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 101 ms / 5,000 ms
コード長 668 bytes
コンパイル時間 3,250 ms
コンパイル使用メモリ 71,528 KB
実行使用メモリ 52,652 KB
最終ジャッジ日時 2023-09-25 00:44:34
合計ジャッジ時間 5,505 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,216 KB
testcase_01 AC 42 ms
49,400 KB
testcase_02 AC 43 ms
49,048 KB
testcase_03 AC 47 ms
49,312 KB
testcase_04 AC 47 ms
49,224 KB
testcase_05 AC 46 ms
49,120 KB
testcase_06 AC 45 ms
49,100 KB
testcase_07 AC 43 ms
49,596 KB
testcase_08 AC 48 ms
49,644 KB
testcase_09 AC 47 ms
49,176 KB
testcase_10 AC 46 ms
49,180 KB
testcase_11 AC 47 ms
49,060 KB
testcase_12 AC 48 ms
49,292 KB
testcase_13 AC 47 ms
47,372 KB
testcase_14 AC 46 ms
49,220 KB
testcase_15 AC 91 ms
52,028 KB
testcase_16 AC 88 ms
52,376 KB
testcase_17 AC 101 ms
52,060 KB
testcase_18 AC 93 ms
52,416 KB
testcase_19 AC 99 ms
52,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder.lv1_5;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;

public class No0201 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputA = br.readLine().split(" ");
		String[] inputB = br.readLine().split(" ");
		BigInteger a = new BigInteger(inputA[1]);
		BigInteger b = new BigInteger(inputB[1]);

		if (a.compareTo(b) > 0) {
			System.out.println(inputA[0]);
		} else if (a.compareTo(b) < 0) {
			System.out.println(inputB[0]);
		} else {
			System.out.println(-1);
		}
	}
}
0