Submission #890259
Source Code Expand
import java.io.*; import java.util.*; public class Main { public void solve() { String s = in.nextToken(); out.println(s.substring(0, 4) + " " + s.substring(4)); } public void run() { in = new FastScanner(); out = new PrintWriter(System.out); solve(); out.close(); } FastScanner in; PrintWriter out; class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner(String fileName) { try { br = new BufferedReader(new FileReader(fileName)); } catch (FileNotFoundException e) { } } public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String nextToken() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { } } return st.nextToken(); } int nextInt() { return Integer.parseInt(nextToken()); } long nextLong() { return Long.parseLong(nextToken()); } double nextDouble() { return Double.parseDouble(nextToken()); } } public static void main(String[] args) { new Main().run(); } }
Submission Info
Submission Time | |
---|---|
Task | A - CODEFESTIVAL 2016 |
User | VArtem |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 1474 Byte |
Status | AC |
Exec Time | 99 ms |
Memory | 8276 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 99 ms | 8148 KB |
0_01.txt | AC | 98 ms | 8144 KB |
0_02.txt | AC | 96 ms | 8276 KB |
1_00.txt | AC | 97 ms | 8272 KB |
1_01.txt | AC | 98 ms | 8144 KB |
1_02.txt | AC | 98 ms | 8144 KB |