結果

問題 No.2599 Summer Project
ユーザー sysnote8mainsysnote8main
提出日時 2024-02-03 22:17:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 456 bytes
コンパイル時間 7,148 ms
コンパイル使用メモリ 75,144 KB
実行使用メモリ 57,824 KB
最終ジャッジ日時 2024-02-03 22:17:34
合計ジャッジ時間 4,288 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
57,760 KB
testcase_01 AC 126 ms
56,012 KB
testcase_02 AC 128 ms
57,704 KB
testcase_03 AC 126 ms
57,712 KB
testcase_04 AC 128 ms
57,824 KB
testcase_05 AC 125 ms
57,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class Main {
  public static void main(String[] args) {
    // "watermelon", "beachball", "shrinebell"
    ArrayList<String> choices = new ArrayList<>();
    choices.add("watermelon");
    choices.add("beachball");
    choices.add("shrinebell");
    Scanner sc = new Scanner(System.in);
    choices.remove(sc.next());
    choices.remove(sc.next());
    System.out.println(choices.get(0));
  }
}
0