結果

問題 No.201 yukicoderじゃんけん
ユーザー ぴろず
提出日時 2015-05-03 23:23:11
言語 Java
(openjdk 23)
結果
AC  
実行時間 202 ms / 5,000 ms
コード長 527 bytes
コンパイル時間 2,665 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 41,888 KB
最終ジャッジ日時 2024-07-05 15:52:30
合計ジャッジ時間 5,094 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

package no200;

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();
		BigInteger yurufuwaA = sc.nextBigInteger();
		sc.next();
		String sb = sc.next();
		BigInteger yurufuwaB = sc.nextBigInteger();
		sc.next();
		int comp = yurufuwaA.compareTo(yurufuwaB);
		if (comp < 0) {
			System.out.println(sb);
		}else if(comp > 0){
			System.out.println(sa);
		}else{
			System.out.println(-1);
		}
	}

}
0