結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,700 KB
testcase_01 AC 114 ms
56,008 KB
testcase_02 WA -
testcase_03 AC 128 ms
55,896 KB
testcase_04 AC 122 ms
56,080 KB
testcase_05 WA -
testcase_06 AC 125 ms
56,080 KB
testcase_07 WA -
testcase_08 AC 119 ms
55,864 KB
testcase_09 AC 120 ms
55,984 KB
testcase_10 AC 119 ms
55,896 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 174 ms
56,292 KB
testcase_17 AC 175 ms
56,524 KB
testcase_18 WA -
testcase_19 AC 175 ms
56,844 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((s1.compareTo(s2) > 0)?s1:(s1.compareTo(s2) == 0)?d:s2);
 }
}
0