結果

問題 No.201 yukicoderじゃんけん
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2016-01-22 19:16:12
言語 Java21
(openjdk 21)
結果
AC  
実行時間 176 ms / 5,000 ms
コード長 573 bytes
コンパイル時間 2,421 ms
コンパイル使用メモリ 74,496 KB
実行使用メモリ 57,968 KB
最終ジャッジ日時 2023-10-21 13:46:43
合計ジャッジ時間 5,322 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
55,988 KB
testcase_01 AC 107 ms
57,376 KB
testcase_02 AC 99 ms
56,876 KB
testcase_03 AC 114 ms
57,440 KB
testcase_04 AC 110 ms
57,400 KB
testcase_05 AC 113 ms
57,444 KB
testcase_06 AC 101 ms
56,152 KB
testcase_07 AC 111 ms
57,412 KB
testcase_08 AC 101 ms
55,992 KB
testcase_09 AC 113 ms
57,264 KB
testcase_10 AC 108 ms
57,188 KB
testcase_11 AC 106 ms
56,188 KB
testcase_12 AC 115 ms
57,188 KB
testcase_13 AC 102 ms
56,168 KB
testcase_14 AC 104 ms
56,768 KB
testcase_15 AC 166 ms
57,968 KB
testcase_16 AC 167 ms
57,764 KB
testcase_17 AC 162 ms
57,800 KB
testcase_18 AC 152 ms
57,448 KB
testcase_19 AC 176 ms
57,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	
		String SA = sc.next(); 
		String PA = sc.next();
		String XA = sc.next();
		
		String SB = sc.next(); 
		String PB = sc.next();
		String XB = sc.next();
		
		BigInteger bigPA = new BigInteger(PA);
		BigInteger bigPB = new BigInteger(PB);
		
		if(bigPA.compareTo(bigPB) > 0) {
			System.out.println(SA);
		} else if(bigPA.compareTo(bigPB) < 0) {
			System.out.println(SB);
		} else {
			System.out.println(-1);
		}
	}
}
0