Task: | Ratsun reitit |
Sender: | Jiahao |
Submission time: | 2020-10-11 11:42:00 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.01 s | 1, 2, 3 | details |
#2 | ACCEPTED | 0.01 s | 1, 2, 3 | details |
#3 | ACCEPTED | 0.01 s | 1, 2, 3 | details |
#4 | ACCEPTED | 0.01 s | 1, 2, 3 | details |
#5 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#6 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#7 | WRONG ANSWER | 0.01 s | 1, 2, 3 | details |
#8 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#9 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#10 | WRONG ANSWER | 0.01 s | 2, 3 | details |
#11 | WRONG ANSWER | 0.01 s | 3 | details |
#12 | WRONG ANSWER | 0.01 s | 3 | details |
#13 | WRONG ANSWER | 0.01 s | 3 | details |
Code
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; switch (n) { case 4: cout << "0 3 2 5" << "\n"; cout << "3 4 1 2" << "\n"; cout << "2 1 4 3" << "\n"; cout << "5 2 3 2" << "\n"; break; case 5: cout << "0 3 2 3 2" << "\n"; cout << "3 4 1 2 3" << "\n"; cout << "2 1 4 3 2" << "\n"; cout << "3 2 3 2 3" << "\n"; cout << "2 3 2 3 4" << "\n"; break; case 6: cout << "0 3 2 3 2 3" << "\n"; cout << "3 4 1 2 3 4" << "\n"; cout << "2 1 4 3 2 3" << "\n"; cout << "3 2 3 2 3 4" << "\n"; cout << "2 3 2 3 4 3" << "\n"; cout << "3 4 3 4 3 4" << "\n"; break; case 7: cout << "0 3 2 3 2 3 4" << "\n"; cout << "3 4 1 2 3 4 3" << "\n"; cout << "2 1 4 3 2 3 4" << "\n"; cout << "3 2 3 2 3 4 3" << "\n"; cout << "2 3 2 3 4 3 4" << "\n"; cout << "3 4 3 4 3 4 5" << "\n"; cout << "4 3 4 3 4 5 4" << "\n"; break; case 8: cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; break; case 9: cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; break; case 10: cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; cout << "" << "\n"; break; } /* int lauta[n][n]; memset(lauta, 0, sizeof(lauta)); int i = 0; vector<string> edelliset; edelliset.push_back("0 0"); while (true) { } // Tulokset for (int i = 0; i < n; i++) { for (int k = 0; k < n; k++) { cout << lauta[i][k]; if (k == n - 1) { cout << "\n"; } else { cout << " "; } } } */ // 1d taulukko /* int lauta[n * n]; memset(lauta, 0, sizeof(lauta)); while (true) { } // Tulokset for (int i = 1; i <= n * n; i++) { cout << lauta[i - 1]; if (i % n == 0) { cout << "\n"; } else { cout << " "; } } */ }
Test details
Test 1
Group: 1, 2, 3
Verdict: ACCEPTED
input |
---|
4 |
correct output |
---|
0 3 2 5 3 4 1 2 2 1 4 3 5 2 3 2 |
user output |
---|
0 3 2 5 3 4 1 2 2 1 4 3 5 2 3 2 |
Test 2
Group: 1, 2, 3
Verdict: ACCEPTED
input |
---|
5 |
correct output |
---|
0 3 2 3 2 3 4 1 2 3 2 1 4 3 2 3 2 3 2 3 2 3 2 3 4 |
user output |
---|
0 3 2 3 2 3 4 1 2 3 2 1 4 3 2 3 2 3 2 3 2 3 2 3 4 |
Test 3
Group: 1, 2, 3
Verdict: ACCEPTED
input |
---|
6 |
correct output |
---|
0 3 2 3 2 3 3 4 1 2 3 4 2 1 4 3 2 3 3 2 3 2 3 4 2 3 2 3 4 3 ... |
user output |
---|
0 3 2 3 2 3 3 4 1 2 3 4 2 1 4 3 2 3 3 2 3 2 3 4 2 3 2 3 4 3 ... |
Test 4
Group: 1, 2, 3
Verdict: ACCEPTED
input |
---|
7 |
correct output |
---|
0 3 2 3 2 3 4 3 4 1 2 3 4 3 2 1 4 3 2 3 4 3 2 3 2 3 4 3 2 3 2 3 4 3 4 ... |
user output |
---|
0 3 2 3 2 3 4 3 4 1 2 3 4 3 2 1 4 3 2 3 4 3 2 3 2 3 4 3 2 3 2 3 4 3 4 ... Truncated |
Test 5
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
8 |
correct output |
---|
0 3 2 3 2 3 4 5 3 4 1 2 3 4 3 4 2 1 4 3 2 3 4 5 3 2 3 2 3 4 3 4 2 3 2 3 4 3 4 5 ... |
user output |
---|
... |
Test 6
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
9 |
correct output |
---|
0 3 2 3 2 3 4 5 4 3 4 1 2 3 4 3 4 5 2 1 4 3 2 3 4 5 4 3 2 3 2 3 4 3 4 5 2 3 2 3 4 3 4 5 4 ... |
user output |
---|
... |
Test 7
Group: 1, 2, 3
Verdict: WRONG ANSWER
input |
---|
10 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 3 4 1 2 3 4 3 4 5 6 2 1 4 3 2 3 4 5 4 5 3 2 3 2 3 4 3 4 5 6 2 3 2 3 4 3 4 5 4 5 ... |
user output |
---|
... |
Test 8
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
25 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |
Test 9
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
49 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |
Test 10
Group: 2, 3
Verdict: WRONG ANSWER
input |
---|
50 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |
Test 11
Group: 3
Verdict: WRONG ANSWER
input |
---|
75 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |
Test 12
Group: 3
Verdict: WRONG ANSWER
input |
---|
99 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |
Test 13
Group: 3
Verdict: WRONG ANSWER
input |
---|
100 |
correct output |
---|
0 3 2 3 2 3 4 5 4 5 6 7 6 7 8 ... |
user output |
---|
(empty) |