結果

問題 No.201 yukicoderじゃんけん
ユーザー ffmm00ffmm00
提出日時 2015-06-02 12:15:00
言語 Java21
(openjdk 21)
結果
AC  
実行時間 180 ms / 5,000 ms
コード長 513 bytes
コンパイル時間 3,574 ms
コンパイル使用メモリ 73,320 KB
実行使用メモリ 56,572 KB
最終ジャッジ日時 2023-09-20 18:42:01
合計ジャッジ時間 6,971 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
55,548 KB
testcase_01 AC 115 ms
55,896 KB
testcase_02 AC 119 ms
55,848 KB
testcase_03 AC 123 ms
56,016 KB
testcase_04 AC 121 ms
55,564 KB
testcase_05 AC 123 ms
55,920 KB
testcase_06 AC 124 ms
55,900 KB
testcase_07 AC 118 ms
55,680 KB
testcase_08 AC 125 ms
56,384 KB
testcase_09 AC 126 ms
55,768 KB
testcase_10 AC 124 ms
55,572 KB
testcase_11 AC 123 ms
55,660 KB
testcase_12 AC 124 ms
55,976 KB
testcase_13 AC 128 ms
55,656 KB
testcase_14 AC 120 ms
55,800 KB
testcase_15 AC 178 ms
56,120 KB
testcase_16 AC 177 ms
56,228 KB
testcase_17 AC 180 ms
56,572 KB
testcase_18 AC 178 ms
56,116 KB
testcase_19 AC 176 ms
56,004 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

public class N201 {

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

		String S1 = sca.next();
		BigInteger P1 = new BigInteger(sca.next());
		String X1 = sca.next();

		String S2 = sca.next();
		BigInteger P2 = new BigInteger(sca.next());
		String X2 = sca.next();

		if (P1.compareTo(P2) < 0)
			System.out.println(S2);
		else if (P1.compareTo(P2) > 0)
			System.out.println(S1);
		else
			System.out.println(-1);

	}

}
0