Submission #891309
Source Code Expand
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); for(int i = 0; i<=s.length(); i++){ if(i==4){ System.out.print(" "); }else if(i<4){ System.out.print(s.charAt(i)); }else{ System.out.print(s.charAt(i-1)); } } System.out.println(); } }
Submission Info
Submission Time | |
---|---|
Task | A - CODEFESTIVAL 2016 |
User | zura |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 384 Byte |
Status | AC |
Exec Time | 141 ms |
Memory | 10056 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 | 141 ms | 10056 KB |
0_01.txt | AC | 124 ms | 9544 KB |
0_02.txt | AC | 124 ms | 9552 KB |
1_00.txt | AC | 124 ms | 9680 KB |
1_01.txt | AC | 124 ms | 9552 KB |
1_02.txt | AC | 122 ms | 9552 KB |