Task: | Kartta |
Sender: | Hansuzu |
Submission time: | 2015-01-29 16:26:52 +0200 |
Language: | C++ |
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.11 s | 1 | details |
#2 | WRONG ANSWER | 0.06 s | 2 | details |
#3 | WRONG ANSWER | 0.07 s | 3 | details |
#4 | WRONG ANSWER | 0.05 s | 4 | details |
Code
#include <iostream> #include <vector> using namespace std; int hm[101][101]; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); int n, m, h; cin >> n >> m >> h; if (h>40) return false; for (int i=0; i<n; ++i) for (int j=0; j<m; ++j) cin >> hm[i][j]; for (int x=1; x<=40; ++x){ for (int i=0; i<n; ++i){ for (int j=0; j<m; ++j){ if (hm[i][j]>=x) 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: ACCEPTED
input |
---|
100 100 40 40 11 38 24 5 31 40 10 17 33 1... |
correct output |
---|
(empty) |
user output |
---|
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV... |
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 |
---|
(empty) |
Test 3
Group: 3
Verdict: WRONG ANSWER
input |
---|
100 100 1000 824 172 828 721 509 73 437 530... |
correct output |
---|
(empty) |
user output |
---|
(empty) |
Test 4
Group: 4
Verdict: WRONG ANSWER
input |
---|
100 100 10000 7110 9439 3392 1630 368 8481 1... |
correct output |
---|
(empty) |
user output |
---|
(empty) |