Task: | Kartta |
Sender: | juusohe |
Submission time: | 2015-01-29 17:09:55 +0200 |
Language: | C++ |
Status: | READY |
Result: | 12 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 12 |
#2 | WRONG ANSWER | 0 |
#3 | WRONG ANSWER | 0 |
#4 | OUTPUT LIMIT EXCEEDED | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.10 s | 1 | details |
#2 | WRONG ANSWER | 0.10 s | 2 | details |
#3 | WRONG ANSWER | 0.30 s | 3 | details |
#4 | OUTPUT LIMIT EXCEEDED | 0.00 s | 4 | details |
Code
#include <stdio.h> #include <iostream> #include <algorithm> #include <vector> #include <utility> #include <string> using namespace std; int main() { cin.sync_with_stdio(false); long long w = 0; long long h = 0; long long max = 0; cin >> w; cin >> h; cin >> max; vector< vector<long long> > ruudukko; vector<long long> rivi; for (long long i = 0; i < w; i++) { for (long long j = 0; j < h; j++) { long long x; cin >> x; rivi.push_back(x); } ruudukko.push_back(rivi); rivi.clear(); } for (long long i = 0; i < w; i++) { for (long long j = 0; j < h; j++) cout << 'V'; cout << '\n'; } for (long long k = 1; k < 40; k++) { for (long long i = 0; i < w; i++) { for (long long j = 0; j < h; j++) { if (ruudukko[i][j] == k) cout << 'S'; else cout << 'L'; } cout << '\n'; } } for (long long k = 1; k <= max; k++) { cout << k << ' '; for (long long l = 1; l <= k; l++) { cout << l << ' '; } cout << '\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... |
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... |
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... |
Test 4
Group: 4
Verdict: OUTPUT LIMIT EXCEEDED
input |
---|
100 100 10000 7110 9439 3392 1630 368 8481 1... |
correct output |
---|
(empty) |
user output |
---|
(empty) |