結果
| 問題 |
No.201 yukicoderじゃんけん
|
| コンテスト | |
| ユーザー |
samplelpmas
|
| 提出日時 | 2016-11-25 12:59:36 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 215 ms / 5,000 ms |
| コード長 | 694 bytes |
| コンパイル時間 | 3,250 ms |
| コンパイル使用メモリ | 74,376 KB |
| 実行使用メモリ | 42,192 KB |
| 最終ジャッジ日時 | 2024-11-27 11:08:51 |
| 合計ジャッジ時間 | 6,123 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 20 |
ソースコード
import java.math.BigInteger;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String nameA = sc.next();
BigInteger yurufuwaPoingA = sc.nextBigInteger();
sc.next();
String nameB = sc.next();
BigInteger yurufuwaPoingB = sc.nextBigInteger();
sc.next();
if (yurufuwaPoingA.compareTo(yurufuwaPoingB) == 0) {
System.out.println(-1);
return;
}
if (yurufuwaPoingA.compareTo(yurufuwaPoingB) > 0) {
System.out.println(nameA);
} else {
System.out.println(nameB);
}
}
}
samplelpmas