結果

問題 No.201 yukicoderじゃんけん
ユーザー 練習生練習生
提出日時 2015-08-18 13:22:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 183 ms / 5,000 ms
コード長 585 bytes
コンパイル時間 3,762 ms
コンパイル使用メモリ 72,144 KB
実行使用メモリ 56,576 KB
最終ジャッジ日時 2023-09-25 12:47:40
合計ジャッジ時間 7,311 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,752 KB
testcase_01 AC 121 ms
56,080 KB
testcase_02 AC 118 ms
56,204 KB
testcase_03 AC 123 ms
55,504 KB
testcase_04 AC 124 ms
55,952 KB
testcase_05 AC 124 ms
55,844 KB
testcase_06 AC 123 ms
55,444 KB
testcase_07 AC 120 ms
55,920 KB
testcase_08 AC 131 ms
55,776 KB
testcase_09 AC 125 ms
55,564 KB
testcase_10 AC 122 ms
55,940 KB
testcase_11 AC 129 ms
56,136 KB
testcase_12 AC 126 ms
55,836 KB
testcase_13 AC 128 ms
56,152 KB
testcase_14 AC 120 ms
55,900 KB
testcase_15 AC 178 ms
56,512 KB
testcase_16 AC 182 ms
56,380 KB
testcase_17 AC 183 ms
56,444 KB
testcase_18 AC 180 ms
56,168 KB
testcase_19 AC 181 ms
56,576 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;
public class No201 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 一人目を入力
		String name1 = sc.next();
		BigInteger p1 = new BigInteger(sc.next());
		String x1 = sc.next();
		// 二人目を入力
		String name2 = sc.next();
		BigInteger p2 = new BigInteger(sc.next());
		String x2 = sc.next();
		// 判定
		if(p1.compareTo(p2) == 1){
			System.out.println(name1);
		}else if(p1.compareTo(p2) == -1){
			System.out.println(name2);
		}else{
			System.out.println("-1");
		}
	}
}
0