結果

問題 No.201 yukicoderじゃんけん
ユーザー rf141
提出日時 2015-06-19 04:38:19
言語 Java
(openjdk 23)
結果
AC  
実行時間 163 ms / 5,000 ms
コード長 442 bytes
コンパイル時間 3,256 ms
コンパイル使用メモリ 75,008 KB
実行使用メモリ 56,304 KB
最終ジャッジ日時 2024-07-07 03:51:23
合計ジャッジ時間 6,161 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

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