結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
57,516 KB
testcase_01 AC 106 ms
56,180 KB
testcase_02 WA -
testcase_03 AC 119 ms
57,384 KB
testcase_04 AC 121 ms
57,560 KB
testcase_05 AC 120 ms
57,400 KB
testcase_06 AC 120 ms
57,396 KB
testcase_07 AC 118 ms
57,464 KB
testcase_08 AC 122 ms
57,496 KB
testcase_09 AC 120 ms
57,460 KB
testcase_10 AC 109 ms
56,200 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 122 ms
57,524 KB
testcase_14 AC 117 ms
57,280 KB
testcase_15 AC 157 ms
57,520 KB
testcase_16 AC 156 ms
57,672 KB
testcase_17 AC 153 ms
57,476 KB
testcase_18 WA -
testcase_19 AC 150 ms
57,336 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.length() == pb.length()) {
        	System.out.println(pa.compareTo(pb) > 0? sa : sb);
        }else {
        	System.out.println(pa.length() > pb.length()? sa : sb);
        }
    }
}
0