Task: | Kartta |
Sender: | Anniiiz |
Submission time: | 2021-12-09 16:33:41 +0200 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | RUNTIME ERROR | 0 |
#3 | RUNTIME ERROR | 0 |
#4 | RUNTIME ERROR | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.04 s | 1 | details |
#2 | RUNTIME ERROR | 0.01 s | 2 | details |
#3 | RUNTIME ERROR | 0.01 s | 3 | details |
#4 | RUNTIME ERROR | 0.01 s | 4 | details |
Code
#include <iostream>#include <vector>#include<algorithm>#include <set>#include <map>using namespace std;using ll = long long;ll t[100][100];ll k[41][100][100];int main() {ll n, m, h;cin >> n >> m >> h;for (int i = 0; i < n; ++i) {for (int j = 0; j < m; ++j) {cin >> t[i][j];}}for (int i = 1; i <= h; ++i) {for (int l = 0; l < n; l++) {for (int j = 0; j < m; j++) {if (t[l][j] < i) k[i][l][j] = 0;else k[i][l][j] = 1;}}}for (int i = h+1; i <= 40; ++i) {for (int l = 0; l < n; l++) {for (int j = 0; j < m; j++) {k[i][l][j] = 0;}}}for (int l = 1; l <= 40; ++l) {//cout << l << endl;for (int i = 0; i < n; ++i) {for (int j = 0; j < m; ++j) {if (k[l][i][j]) cout << "V" << " ";else cout << "S" << " ";}cout << endl;}}for (int i = 1; i <= h; ++i) {cout << 1 << " " << i << endl;}}
Test details
Test 1
Group: 1
Verdict: WRONG ANSWER
input |
---|
100 100 40 40 11 38 24 5 31 40 10 17 33 1... |
correct output |
---|
(empty) |
user output |
---|
V V V V V V V V V V V V V V V ... Truncated |
Test 2
Group: 2
Verdict: RUNTIME ERROR
input |
---|
100 100 200 200 71 185 86 113 84 170 60 17... |
correct output |
---|
(empty) |
user output |
---|
(empty) |
Test 3
Group: 3
Verdict: RUNTIME ERROR
input |
---|
100 100 1000 824 172 828 721 509 73 437 530... |
correct output |
---|
(empty) |
user output |
---|
(empty) |
Test 4
Group: 4
Verdict: RUNTIME ERROR
input |
---|
100 100 10000 7110 9439 3392 1630 368 8481 1... |
correct output |
---|
(empty) |
user output |
---|
(empty) |