Task: | Sudoku |
Sender: | |
Submission time: | 2015-08-15 09:29:20 +0300 |
Language: | Python3 |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.08 s | details |
#2 | ACCEPTED | 0.08 s | details |
#3 | ACCEPTED | 0.08 s | details |
#4 | ACCEPTED | 0.08 s | details |
#5 | ACCEPTED | 0.08 s | details |
Code
#!/usr/bin/env python3 def main(): rivi = input().strip() patkat = [rivi[:3], rivi[3:6], rivi[6:]] for i in range(9): print(''.join(patkat)) patkat = patkat[1:] + [patkat[0]] if i % 3 == 2: for j in range(3): patkat[j] = patkat[j][1:] + patkat[j][0] if __name__ == '__main__': main()
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 ... |