結果

問題 No.2599 Summer Project
ユーザー guanghuichen1guanghuichen1
提出日時 2024-01-22 19:21:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 648 bytes
コンパイル時間 6,283 ms
コンパイル使用メモリ 75,660 KB
実行使用メモリ 57,824 KB
最終ジャッジ日時 2024-01-22 19:21:50
合計ジャッジ時間 5,763 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
57,824 KB
testcase_01 AC 114 ms
57,568 KB
testcase_02 AC 114 ms
57,580 KB
testcase_03 AC 114 ms
57,600 KB
testcase_04 AC 106 ms
56,676 KB
testcase_05 AC 113 ms
57,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.HashMap;
import java.util.Scanner;

public class Main1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        HashMap<String,Boolean>map=new HashMap<>();
        String []ar={"watermelon","beachball","shrinebell"};
        map.put(ar[0], false);
        map.put(ar[1], false);
        map.put(ar[2], false);
        for (int i = 0; i < 2; i++) {
            String tem=sc.next();
            map.put(tem, true);
        }
        sc.close();
        for (String s : map.keySet()) {
            if(map.get(s)==false){
                System.out.println(s);
            }
        }
    }
}
0