結果
問題 | No.201 yukicoderじゃんけん |
ユーザー | maru |
提出日時 | 2016-03-23 13:12:19 |
言語 | Java21 (openjdk 21) |
結果 |
RE
|
実行時間 | - |
コード長 | 465 bytes |
コンパイル時間 | 2,798 ms |
コンパイル使用メモリ | 74,452 KB |
実行使用メモリ | 54,496 KB |
最終ジャッジ日時 | 2024-04-09 19:19:26 |
合計ジャッジ時間 | 6,175 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 113 ms
53,996 KB |
testcase_01 | RE | - |
testcase_02 | AC | 98 ms
52,752 KB |
testcase_03 | RE | - |
testcase_04 | RE | - |
testcase_05 | RE | - |
testcase_06 | RE | - |
testcase_07 | RE | - |
testcase_08 | RE | - |
testcase_09 | RE | - |
testcase_10 | RE | - |
testcase_11 | RE | - |
testcase_12 | RE | - |
testcase_13 | RE | - |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
ソースコード
import java.util.Scanner; public class yukicoder_201 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); String sa = stdIn.next(); long pa = stdIn.nextLong(); String xa = stdIn.next(); String sb = stdIn.next(); long pb = stdIn.nextLong(); String xb = stdIn.next(); if (pa > pb) { System.out.println(sa); } else if (pa == pb) { System.out.println(-1); } else { System.out.println(sb); } } }