結果

問題 No.201 yukicoderじゃんけん
ユーザー tsunabittsunabit
提出日時 2019-05-22 23:34:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 764 bytes
コンパイル時間 3,665 ms
コンパイル使用メモリ 75,612 KB
実行使用メモリ 57,968 KB
最終ジャッジ日時 2023-10-17 11:22:50
合計ジャッジ時間 7,857 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,352 KB
testcase_01 AC 132 ms
57,408 KB
testcase_02 AC 131 ms
57,332 KB
testcase_03 AC 136 ms
57,412 KB
testcase_04 WA -
testcase_05 AC 135 ms
57,376 KB
testcase_06 AC 135 ms
57,196 KB
testcase_07 AC 133 ms
57,440 KB
testcase_08 AC 133 ms
57,388 KB
testcase_09 AC 133 ms
57,384 KB
testcase_10 AC 130 ms
57,380 KB
testcase_11 AC 133 ms
57,360 KB
testcase_12 AC 134 ms
57,420 KB
testcase_13 AC 133 ms
57,400 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 174 ms
57,684 KB
testcase_17 AC 166 ms
57,696 KB
testcase_18 AC 173 ms
57,628 KB
testcase_19 AC 176 ms
57,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Scanner;
import java.util.Collections;

public class No201 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
//        𝑆𝐴 𝑃𝐴 𝑋𝐴
//        𝑆𝐵 𝑃𝐵 𝑋𝐵
        String sa = s.next();
        String pa = s.next();
        String xa = s.next();
        
        String sb = s.next();
        String pb = s.next();
        String xb = s.next();
        
        if(pa.compareTo(pb) > 0) {
        	System.out.println(sa);
        }else if(pa.compareTo(pb) < 0) {
        	System.out.println(sb);
        }else {
        	System.out.println(-1);
        }
    }
}
0