結果

問題 No.2599 Summer Project
ユーザー 👑 SPD_9X2SPD_9X2
提出日時 2024-02-01 20:35:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 509 bytes
コンパイル時間 2,271 ms
コンパイル使用メモリ 74,568 KB
実行使用メモリ 57,836 KB
最終ジャッジ日時 2024-02-01 20:35:19
合計ジャッジ時間 3,919 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
57,716 KB
testcase_01 AC 125 ms
57,564 KB
testcase_02 AC 126 ms
57,836 KB
testcase_03 AC 130 ms
57,820 KB
testcase_04 AC 123 ms
57,828 KB
testcase_05 AC 129 ms
57,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);

        
        String s = sc.next();
        String t = sc.next();

        Set<String> values = Set.of(s,t);

        if (!values.contains("watermelon")){
            System.out.println("watermelon");
        }else if (!values.contains("beachball")){
            System.out.println("beachball");
        }else{
            System.out.println("shrinebell");
        }

    }
}
0