結果
問題 | No.2599 Summer Project |
ユーザー |
![]() |
提出日時 | 2024-01-12 22:05:07 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 113 ms / 2,000 ms |
コード長 | 454 bytes |
コンパイル時間 | 4,504 ms |
コンパイル使用メモリ | 74,880 KB |
実行使用メモリ | 54,524 KB |
最終ジャッジ日時 | 2024-09-27 22:21:40 |
合計ジャッジ時間 | 5,498 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 |
ソースコード
import java.util.ArrayList;import java.util.List;import java.util.Scanner;public class Main {public static void main(String[] args) throws Exception {Scanner sc = new Scanner(System.in);String s = sc.next();String t = sc.next();sc.close();List<String> list = new ArrayList<>();list.add("watermelon");list.add("beachball");list.add("shrinebell");list.remove(s);list.remove(t);System.out.println(list.get(0));}}