| Task: | Kartta |
| Sender: | henrikaalto |
| Submission time: | 2021-12-09 15:59:56 +0200 |
| Language: | C++ (C++17) |
| Status: | READY |
| Result: | 12 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 12 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| #4 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.02 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 <bits/stdc++.h>
using namespace std;
const int N = 200, H = 10001;
int grid[N][N];
char g[40][N][N];
vector<int> ans[H];
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
int n, m, h;
cin >> n >> m >> h;
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
cin >> grid[i][j];
}
}
for (int k = 0; k < h; ++k) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
g[k][i][j] = 1 + (grid[i][j] >= k + 1);
}
}
}
for (int k = 0; k < 40; ++k) {
for (int i = 0; i < n; ++i) {
for (int j = 0; j < m; ++j) {
if (!g[k][i][j]) cout << 'L';
else cout << (g[k][i][j] == 1 ? 'S' : 'V');
}
cout << '\n';
}
}
for (int i = 1; i <= h; ++i) {
cout << 1 << ' ' << i << '\n';
}
}
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: 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) |
