CSES - Putka Open 2015 – 2/6 - Results
Submission details
Task:Sudoku
Sender:
Submission time:2015-08-16 19:12:48 +0300
Language:C++
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.06 sdetails
#2ACCEPTED0.04 sdetails
#3ACCEPTED0.06 sdetails
#4ACCEPTED0.05 sdetails
#5ACCEPTED0.05 sdetails

Code

#include <iostream>

using namespace std;

string s;
int t[9][9] = {{0,1,2,3,4,5,6,7,8},
	     {6,4,8,7,2,0,3,5,1},
	     {5,7,3,8,1,6,2,0,4},
	     {2,3,5,4,8,7,0,1,6},
	     {4,0,1,5,6,3,7,8,2},
	     {7,8,6,2,0,1,5,4,3},
	     {3,2,0,1,7,8,4,6,5},
	     {8,6,4,0,5,2,1,3,7},
	     {1,5,7,6,3,4,8,2,0}};

int main() {
	cin >> s;
	for (int i=0;i<9;i++) {
		for (int j=0;j<9;j++) {
			cout << s[t[i][j]];
		}
		cout << "\n";
	}
}

Test details

Test 1

Verdict: ACCEPTED

input
592836471

correct output
592836471
836471592
471592836
928364715
364715928
...

user output
592836471
431725869
678194253
286317594
359648712
...

Test 2

Verdict: ACCEPTED

input
672935418

correct output
672935418
935418672
418672935
729354186
354186729
...

user output
672935418
438126957
519874263
295381674
367549182
...

Test 3

Verdict: ACCEPTED

input
329174658

correct output
329174658
174658329
658329174
291746583
746583291
...

user output
329174658
678593142
451826937
914785326
732461589
...

Test 4

Verdict: ACCEPTED

input
376958421

correct output
376958421
958421376
421376958
769584213
584213769
...

user output
376958421
451263987
829174635
698512374
537849216
...

Test 5

Verdict: ACCEPTED

input
875694321

correct output
875694321
694321875
321875694
756943218
943218756
...

user output
875694321
391258647
426173589
564912873
987436215
...