結果

問題 No.201 yukicoderじゃんけん
ユーザー ちよちゃんちよちゃん
提出日時 2016-06-06 13:29:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 208 ms / 5,000 ms
コード長 664 bytes
コンパイル時間 3,293 ms
コンパイル使用メモリ 71,808 KB
実行使用メモリ 56,512 KB
最終ジャッジ日時 2023-09-02 08:34:24
合計ジャッジ時間 7,410 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,440 KB
testcase_01 AC 121 ms
55,616 KB
testcase_02 AC 121 ms
55,412 KB
testcase_03 AC 127 ms
56,084 KB
testcase_04 AC 127 ms
55,828 KB
testcase_05 AC 127 ms
55,752 KB
testcase_06 AC 125 ms
55,508 KB
testcase_07 AC 121 ms
55,444 KB
testcase_08 AC 127 ms
55,668 KB
testcase_09 AC 127 ms
55,660 KB
testcase_10 AC 126 ms
55,520 KB
testcase_11 AC 128 ms
55,772 KB
testcase_12 AC 127 ms
56,020 KB
testcase_13 AC 127 ms
55,608 KB
testcase_14 AC 123 ms
55,664 KB
testcase_15 AC 184 ms
56,512 KB
testcase_16 AC 189 ms
55,936 KB
testcase_17 AC 185 ms
56,216 KB
testcase_18 AC 208 ms
56,200 KB
testcase_19 AC 190 ms
56,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

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

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

		String name = scan.next();
		String point = scan.next();
		String R = scan.next();
		String name2 = scan.next();
		String point2 = scan.next();
		String R2 = scan.next();
		scan.close();
		
		BigInteger bigint =  new BigInteger(point);
		BigInteger bigint2 =  new BigInteger(point2);
		int ans = bigint.compareTo(bigint2); 
		
		if(ans == 1){
			System.out.println(name);
		}else if( ans == -1){
			System.out.println(name2);
		}else {
			System.out.println(-1);
		}		
	}

}
0