Code Submission Evaluation System Login

Datatähti 2015 loppu

Start:2015-01-29 12:15:00
End:2015-01-29 17:15:00
 

Tasks | Scoreboard | Statistics


CSES - Datatähti 2015 loppu - Results
History
2015-01-29 17:09:5512
2015-01-29 17:07:510
2015-01-29 17:01:470
2015-01-29 16:50:1512
Task:Kartta
Sender:juusohe
Submission time:2015-01-29 17:09:55
Language:C++
Status:READY
Score:12

Feedback

groupverdictscore
#1ACCEPTED12
#2WRONG ANSWER0
#3WRONG ANSWER0
#4OUTPUT LIMIT EXCEEDED0

Test results

testverdicttime (s)group
#1ACCEPTED0.10 / 5.001details
#2WRONG ANSWER0.10 / 5.002details
#3WRONG ANSWER0.30 / 5.003details
#4OUTPUT LIMIT EXCEEDED0.00 / 5.004details

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...
view   save

correct output
(empty)

user output
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV...
view   save

Test 2

Group: 2

Verdict: WRONG ANSWER

input
100 100 200
200 71 185 86 113 84 170 60 17...
view   save

correct output
(empty)

user output
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV...
view   save

Test 3

Group: 3

Verdict: WRONG ANSWER

input
100 100 1000
824 172 828 721 509 73 437 530...
view   save

correct output
(empty)

user output
VVVVVVVVVVVVVVVVVVVVVVVVVVVVVV...
view   save

Test 4

Group: 4

Verdict: OUTPUT LIMIT EXCEEDED

input
100 100 10000
7110 9439 3392 1630 368 8481 1...
view   save

correct output
(empty)

user output
(empty)