結果

問題 No.201 yukicoderじゃんけん
ユーザー rf141rf141
提出日時 2015-06-19 04:38:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 180 ms / 5,000 ms
コード長 442 bytes
コンパイル時間 3,244 ms
コンパイル使用メモリ 72,488 KB
実行使用メモリ 56,956 KB
最終ジャッジ日時 2023-09-21 09:40:25
合計ジャッジ時間 6,962 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,996 KB
testcase_01 AC 114 ms
55,932 KB
testcase_02 AC 116 ms
55,480 KB
testcase_03 AC 124 ms
56,032 KB
testcase_04 AC 121 ms
55,564 KB
testcase_05 AC 123 ms
55,932 KB
testcase_06 AC 122 ms
56,268 KB
testcase_07 AC 118 ms
55,816 KB
testcase_08 AC 123 ms
56,204 KB
testcase_09 AC 123 ms
56,328 KB
testcase_10 AC 119 ms
55,860 KB
testcase_11 AC 121 ms
55,776 KB
testcase_12 AC 122 ms
56,084 KB
testcase_13 AC 122 ms
56,752 KB
testcase_14 AC 120 ms
55,840 KB
testcase_15 AC 178 ms
56,560 KB
testcase_16 AC 180 ms
56,956 KB
testcase_17 AC 180 ms
56,072 KB
testcase_18 AC 178 ms
56,956 KB
testcase_19 AC 180 ms
56,268 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.math.*;
public class Janken{
 public static void main(String[] args){
  Scanner scan = new Scanner(System.in);
  String s1 = scan.next();
  BigInteger p1 = new BigInteger(scan.next());
  String x1 = scan.next();

  String s2 = scan.next();
  BigInteger p2 = new BigInteger(scan.next());
  String x2 = scan.next();
  int d = -1;
  System.out.println((p1.compareTo(p2) > 0)?s1:(p1.compareTo(p2) == 0)?d:s2);
 }
}
0