結果

問題 No.201 yukicoderじゃんけん
ユーザー 37zigen37zigen
提出日時 2016-03-10 00:54:49
言語 Java19
(openjdk 21)
結果
AC  
実行時間 215 ms / 5,000 ms
コード長 519 bytes
コンパイル時間 3,743 ms
コンパイル使用メモリ 74,356 KB
実行使用メモリ 58,348 KB
最終ジャッジ日時 2023-10-24 22:09:13
合計ジャッジ時間 8,153 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
57,588 KB
testcase_01 AC 128 ms
57,488 KB
testcase_02 AC 130 ms
57,592 KB
testcase_03 AC 135 ms
57,532 KB
testcase_04 AC 130 ms
57,304 KB
testcase_05 AC 130 ms
57,308 KB
testcase_06 AC 130 ms
57,288 KB
testcase_07 AC 137 ms
57,588 KB
testcase_08 AC 140 ms
57,372 KB
testcase_09 AC 137 ms
57,088 KB
testcase_10 AC 137 ms
57,508 KB
testcase_11 AC 136 ms
57,568 KB
testcase_12 AC 134 ms
57,444 KB
testcase_13 AC 134 ms
57,300 KB
testcase_14 AC 131 ms
57,352 KB
testcase_15 AC 198 ms
58,156 KB
testcase_16 AC 215 ms
55,660 KB
testcase_17 AC 206 ms
57,648 KB
testcase_18 AC 209 ms
58,348 KB
testcase_19 AC 206 ms
57,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		String SA=sc.next();
		String AP=sc.next();
		String A=sc.next();
		String SB=sc.next();
		String BP=sc.next();
		String B=sc.next();
		
		BigInteger ap=new BigInteger(AP);
		BigInteger bp=new BigInteger(BP);
		if(ap.compareTo(bp)>0){
			System.out.println(SA);
		}else if(ap.compareTo(bp)<0){
			System.out.println(SB);
		}else{
			System.out.println(-1);
		}
	}
}
0