Submission #2252590


Source Code Expand

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int k = 0;
		String[] rs = new String[100];
		String s = scan.next();
		String[] str = s.split("");
		for(int i = 0; i < str.length; i++) {
			if(i % 2 == 0) {
				rs[k] = str[i];
				k++;
			}
		}
		String[] last = new String[k];
		for(int i = 0; i < k; i++) {
			last[i] = rs[i];
		}
		System.out.println(String.join("", last));
		scan.close();
	}
}

Submission Info

Submission Time
Task B - OddString
User ne290170
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 503 Byte
Status RE
Exec Time 208 ms
Memory 32064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 4
AC × 6
RE × 2
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 0_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt
Case Name Status Exec Time Memory
0_000.txt AC 88 ms 18644 KB
0_001.txt AC 88 ms 21844 KB
0_002.txt AC 88 ms 19796 KB
0_003.txt AC 90 ms 19412 KB
1_004.txt AC 90 ms 20564 KB
1_005.txt AC 89 ms 19796 KB
1_006.txt RE 199 ms 32064 KB
1_007.txt RE 208 ms 29608 KB