| Task: | Sudoku |
| Sender: | |
| Submission time: | 2015-08-15 18:18:27 +0300 |
| Language: | Java |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | WRONG ANSWER | 0 |
| test | verdict | time | |
|---|---|---|---|
| #1 | WRONG ANSWER | 0.20 s | details |
| #2 | WRONG ANSWER | 0.19 s | details |
| #3 | WRONG ANSWER | 0.20 s | details |
| #4 | WRONG ANSWER | 0.19 s | details |
| #5 | WRONG ANSWER | 0.19 s | details |
Code
import java.util.Scanner;
public class Sudoku {
public static void main(String[] args) {
final int[] muutokset = {3,6,1,4,7,2,5,8};
Scanner input = new Scanner(System.in);
final String alkuString = input.next();
int alku[] = new int[9];
for (int i=0 ; i<9 ; i++){
alku[i] = Integer.parseInt(alkuString.substring(i, i+1));
}
for (int y=0 ; y<8 ; y++){
for(int x=0 ; x<9 ; x++){
int muutettu = (alku[x]+muutokset[y])%9;
System.out.print(muutettu);
}
System.out.println();
}
}
}
Test details
Test 1
Verdict: WRONG ANSWER
| input |
|---|
| 592836471 |
| correct output |
|---|
| 592836471 836471592 471592836 928364715 364715928 ... |
| user output |
|---|
| 835260714 268503147 613047582 046371825 370614258 ... |
Test 2
Verdict: WRONG ANSWER
| input |
|---|
| 672935418 |
| correct output |
|---|
| 672935418 935418672 418672935 729354186 354186729 ... |
| user output |
|---|
| 015368742 348602175 783146520 126470853 450713286 ... |
Test 3
Verdict: WRONG ANSWER
| input |
|---|
| 329174658 |
| correct output |
|---|
| 329174658 174658329 658329174 291746583 746583291 ... |
| user output |
|---|
| 653417082 086741325 431285760 764528103 107852436 ... |
Test 4
Verdict: WRONG ANSWER
| input |
|---|
| 376958421 |
| correct output |
|---|
| 376958421 958421376 421376958 769584213 584213769 ... |
| user output |
|---|
| 610382754 043625187 487160532 721403865 154736208 ... |
Test 5
Verdict: WRONG ANSWER
| input |
|---|
| 875694321 |
| correct output |
|---|
| 875694321 694321875 321875694 756943218 943218756 ... |
| user output |
|---|
| 218037654 542361087 086715432 320148765 653472108 ... |
