| Task: | Kartta |
| Sender: | xnor |
| Submission time: | 2021-12-09 16:13:56 +0200 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | 12 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 12 |
| #2 | WRONG ANSWER | 0 |
| #3 | WRONG ANSWER | 0 |
| #4 | WRONG ANSWER | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.02 s | 1 | details |
| #2 | WRONG ANSWER | 0.02 s | 2 | details |
| #3 | WRONG ANSWER | 0.02 s | 3 | details |
| #4 | WRONG ANSWER | 0.03 s | 4 | details |
Code
#include <iostream>
#include <vector>
using namespace std;
using ll = long long;
int main() {
int m, n, h;
cin >> n >> m >> h;
vector<vector<int>> map;
for (int y = 0; y < n; y++) {
vector<int> row;
for (int x = 0; x < m; x++) {
int z;
cin >> z;
row.push_back(z);
}
map.push_back(row);
}
for (int c = 1; c <= 40; c++) {
if (c <= h) {
for (int y = 0; y < n; y++) {
for (int x = 0; x < m; x++) {
if (map[y][x] < c) {
cout << "S";
} else {
cout << "V";
}
}
cout << "\n";
}
} else {
for (int y = 0; y < n; y++) {
for (int x = 0; x < m; x++) {
cout << "L";
}
cout << "\n";
}
}
}
for (int c = 1; c <= h; c++) {
cout << "1 " << c << "\n";
}
return 0;
}
Test details
Test 1
Group: 1
Verdict: ACCEPTED
| input |
|---|
| 100 100 40 40 11 38 24 5 31 40 10 17 33 1... |
| correct output |
|---|
| (empty) |
| user output |
|---|
| VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... Truncated |
Test 2
Group: 2
Verdict: WRONG ANSWER
| input |
|---|
| 100 100 200 200 71 185 86 113 84 170 60 17... |
| correct output |
|---|
| (empty) |
| user output |
|---|
| VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... Truncated |
Test 3
Group: 3
Verdict: WRONG ANSWER
| input |
|---|
| 100 100 1000 824 172 828 721 509 73 437 530... |
| correct output |
|---|
| (empty) |
| user output |
|---|
| VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... Truncated |
Test 4
Group: 4
Verdict: WRONG ANSWER
| input |
|---|
| 100 100 10000 7110 9439 3392 1630 368 8481 1... |
| correct output |
|---|
| (empty) |
| user output |
|---|
| VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... Truncated |
