Task: | Sudoku |
Sender: | |
Submission time: | 2015-08-16 20:39:47 +0300 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.05 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.06 s | details |
#4 | WRONG ANSWER | 0.05 s | details |
#5 | WRONG ANSWER | 0.06 s | details |
Code
#include <iostream> using namespace std; char t[9][9]; int main() { string s; cin>>s; for(int i = 0; i < 9; ++i) { cout<<s[i]; t[0][i] = s[i]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<s[(i+3)%9]; t[1][i] = s[(i+3)%9]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<s[(i+6)%9]; t[2][i] = s[(i+6)%9]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[0][i/3+((i+1)%3)]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[1][i/3+((i+1)%3)]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[2][i/3+((i+1)%3)]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[0][i/3+((i+2)%3)]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[1][i/3+((i+2)%3)]; } cout<<'\n'; for(int i = 0; i < 9; ++i) { cout<<t[2][i/3+((i+2)%3)]; } }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
592836471 |
correct output |
---|
592836471 836471592 471592836 928364715 364715928 ... |
user output |
---|
592836471 836471592 471592836 925289832 368643476 ... |
Test 2
Verdict: WRONG ANSWER
input |
---|
672935418 |
correct output |
---|
672935418 935418672 418672935 729354186 354186729 ... |
user output |
---|
672935418 935418672 418672935 726297932 359543415 ... |
Test 3
Verdict: WRONG ANSWER
input |
---|
329174658 |
correct output |
---|
329174658 174658329 658329174 291746583 746583291 ... |
user output |
---|
329174658 174658329 658329174 293912179 741467654 ... |
Test 4
Verdict: WRONG ANSWER
input |
---|
376958421 |
correct output |
---|
376958421 958421376 421376958 769584213 584213769 ... |
user output |
---|
376958421 958421376 421376958 763697956 589845428 ... |
Test 5
Verdict: WRONG ANSWER
input |
---|
875694321 |
correct output |
---|
875694321 694321875 321875694 756943218 943218756 ... |
user output |
---|
875694321 694321875 321875694 758567695 946439324 ... |