Submission #63004235
Source Code Expand
Copy
import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner sc = new Scanner(System.in);String S = sc.nextLine();String ans = S.replaceAll("[^2]", "");System.out.println(ans);sc.close();}}
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String ans = S.replaceAll("[^2]", ""); System.out.println(ans); sc.close(); } }
Submission Info
Submission Time | |
---|---|
Task | A - 22222 |
User | amenokayoubi |
Language | Java (OpenJDK 17) |
Score | 100 |
Code Size | 258 Byte |
Status | AC |
Exec Time | 74 ms |
Memory | 38156 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample00.txt, sample01.txt, sample02.txt |
All | sample00.txt, sample01.txt, sample02.txt, testcase00.txt, testcase01.txt, testcase02.txt, testcase03.txt, testcase04.txt, testcase05.txt, testcase06.txt, testcase07.txt, testcase08.txt, testcase09.txt, testcase10.txt, testcase11.txt, testcase12.txt, testcase13.txt, testcase14.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample00.txt | AC | 71 ms | 38044 KB |
sample01.txt | AC | 70 ms | 37852 KB |
sample02.txt | AC | 73 ms | 38048 KB |
testcase00.txt | AC | 71 ms | 37864 KB |
testcase01.txt | AC | 71 ms | 38156 KB |
testcase02.txt | AC | 73 ms | 38000 KB |
testcase03.txt | AC | 72 ms | 38148 KB |
testcase04.txt | AC | 74 ms | 38052 KB |
testcase05.txt | AC | 73 ms | 37732 KB |
testcase06.txt | AC | 73 ms | 37812 KB |
testcase07.txt | AC | 72 ms | 38064 KB |
testcase08.txt | AC | 72 ms | 38036 KB |
testcase09.txt | AC | 71 ms | 37888 KB |
testcase10.txt | AC | 72 ms | 38052 KB |
testcase11.txt | AC | 72 ms | 37792 KB |
testcase12.txt | AC | 73 ms | 37844 KB |
testcase13.txt | AC | 72 ms | 38060 KB |
testcase14.txt | AC | 72 ms | 38112 KB |