結果
問題 |
No.1468 Colourful Pastel
|
ユーザー |
|
提出日時 | 2022-10-01 02:37:51 |
言語 | Java (openjdk 23) |
結果 |
TLE
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 3,147 ms |
コンパイル使用メモリ | 74,348 KB |
実行使用メモリ | 77,272 KB |
最終ジャッジ日時 | 2024-12-23 06:00:55 |
合計ジャッジ時間 | 15,165 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 TLE * 3 |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String num = sc.nextLine(); String beforeUse = sc.nextLine(); String[] afterUse = (sc.nextLine()).split(" "); beforeUse = beforeUse.replace(" ", ""); // 空白を取り除く for (String element : afterUse) { beforeUse = beforeUse.replaceFirst(element, ""); } System.out.println(beforeUse); sc.close(); } }