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 14:51:1312
2015-01-29 14:49:480
Task:Kartta
Sender:Scintillo
Submission time:2015-01-29 14:51:13
Language:C++
Status:READY
Score:12

Feedback

groupverdictscore
#1ACCEPTED12
#2WRONG ANSWER0
#3WRONG ANSWER0
#4WRONG ANSWER0

Test results

testverdicttime (s)group
#1ACCEPTED0.10 / 5.001details
#2WRONG ANSWER0.06 / 5.002details
#3WRONG ANSWER0.07 / 5.003details
#4WRONG ANSWER0.06 / 5.004details

Code

#include <iostream>

using namespace std;

int kartta[100][100];

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);

	int h, w, d;
	cin >> h >> w >> d;

	if(d > 40)
	{
		return 0;
	}

	for(int y = 0; y < h; y++)
		for(int x = 0; x < w; x++)
			cin >> kartta[x][y];

	for(int i = 1; i <= 40; i++)
	{
		for(int y = 0; y < h; y++)
		{
			for(int x = 0; x < w; x++)
			{
				if(kartta[x][y] >= i)
				{
					cout << 'V';
				}
				else
				{
					cout << 'S';
				}
			}

			cout << endl;
		}
	}

	for(int i = 1; i <= d; i++)
	{
		cout << "1 " << i << endl;
	}

	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...
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
(empty)

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
(empty)

Test 4

Group: 4

Verdict: WRONG ANSWER

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

correct output
(empty)

user output
(empty)