結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | TatsuDX |
提出日時 | 2016-09-09 00:27:49 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 4,558 ms |
コンパイル使用メモリ | 74,420 KB |
実行使用メモリ | 55,832 KB |
最終ジャッジ日時 | 2024-04-27 18:20:42 |
合計ジャッジ時間 | 5,964 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 112 ms
53,968 KB |
testcase_02 | WA | - |
testcase_03 | AC | 96 ms
53,048 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | AC | 105 ms
54,276 KB |
testcase_08 | AC | 96 ms
52,956 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | AC | 106 ms
53,900 KB |
testcase_15 | AC | 114 ms
53,096 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 129 ms
54,044 KB |
ソースコード
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String p1 = sc.next(), x = sc.next(); String p2 = sc.next(), y = sc.next(); if(p1.compareTo(p2) > 0){ System.out.println(p1); } else if(p1.compareTo(p2) < 0){ System.out.println(p2); } else { System.out.println(-1); } } }