Submission #891054


Source Code Expand

import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.*;
/**
 * Created by Aksenov239 on 24.09.2016.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();
    }

    BufferedReader br;
    StringTokenizer st;
    PrintWriter out;

    public String nextToken() throws IOException{
        while (st == null || !st.hasMoreTokens()) {
            st = new StringTokenizer(br.readLine());
        }
        return st.nextToken();
    }

    public int nextInt() throws IOException{
        return Integer.parseInt(nextToken());
    }

    public void solve() throws IOException {
        String s = nextToken();
        out.println(s.substring(0, 4) + " " + s.substring(4, 12));
    }

    public void run() {
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
            out = new PrintWriter(System.out);

            solve();

            out.close();
        }catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Submission Info

Submission Time
Task A - CODEFESTIVAL 2016
User Aksenov239
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 1140 Byte
Status AC
Exec Time 97 ms
Memory 8148 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 6
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt
Case Name Status Exec Time Memory
0_00.txt AC 97 ms 8144 KB
0_01.txt AC 95 ms 8148 KB
0_02.txt AC 96 ms 8144 KB
1_00.txt AC 97 ms 8144 KB
1_01.txt AC 94 ms 8144 KB
1_02.txt AC 94 ms 8148 KB