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

Code

#include <iostream>
#include <string>

#define S(a,b,c,d,e,f,g,h,i) std::string{s[a],s[b],s[c],s[d],s[e],s[f],s[g],s[h],s[i]}

int main(){
  std::string s;std::cin>>s;
  std::cout<<s<<'\n'
    <<S(3,4,5,6,7,8,0,1,2)<<'\n'
    <<S(6,7,8,0,1,2,3,4,5)<<'\n'
    <<S(1,2,0,4,5,3,7,8,6)<<'\n'
    <<S(4,5,3,7,8,6,1,2,0)<<'\n'
    <<S(7,8,6,1,2,0,4,5,3)<<'\n'
    <<S(2,0,1,5,3,4,8,6,7)<<'\n'
    <<S(5,3,4,8,6,7,2,0,1)<<'\n'
    <<S(8,6,7,2,0,1,5,3,4)<<'\n';
}

Test details

Test 1

Verdict: ACCEPTED

input
592836471

correct output
592836471
836471592
471592836
928364715
364715928
...

user output
592836471
836471592
471592836
925368714
368714925
...

Test 2

Verdict: ACCEPTED

input
672935418

correct output
672935418
935418672
418672935
729354186
354186729
...

user output
672935418
935418672
418672935
726359184
359184726
...

Test 3

Verdict: ACCEPTED

input
329174658

correct output
329174658
174658329
658329174
291746583
746583291
...

user output
329174658
174658329
658329174
293741586
741586293
...

Test 4

Verdict: ACCEPTED

input
376958421

correct output
376958421
958421376
421376958
769584213
584213769
...

user output
376958421
958421376
421376958
763589214
589214763
...

Test 5

Verdict: ACCEPTED

input
875694321

correct output
875694321
694321875
321875694
756943218
943218756
...

user output
875694321
694321875
321875694
758946213
946213758
...