141 - The Spot Game
Moderator: Board moderators
-
- Experienced poster
- Posts: 187
- Joined: Wed Dec 11, 2002 2:03 pm
- Location: Mount Papandayan, Garut
141 - The Spot Game
somebody have sample input, please. i always got WA for this look simple problem
Kalo mau kaya, buat apa sekolah?
-
- Guru
- Posts: 834
- Joined: Wed May 29, 2002 4:11 pm
- Location: Wroclaw, Poland
- Contact:
-
- Experienced poster
- Posts: 187
- Joined: Wed Dec 11, 2002 2:03 pm
- Location: Mount Papandayan, Garut
Ok, I can't read this input, it seems - I checked if input is in the format given, I think it is - I have no idea what I am doing wrong.
I've been getting WA in 0:00.008, which is way faster than other Java submitions, so I suspect it is some kind of a runtime error, but I don't understand what is wrong. Before I post my code, did anyone else have trouble reading this one in?
Darko
P.S. I think it happens after the 8th set - there must be more than 8?
I've been getting WA in 0:00.008, which is way faster than other Java submitions, so I suspect it is some kind of a runtime error, but I don't understand what is wrong. Before I post my code, did anyone else have trouble reading this one in?
Darko
P.S. I think it happens after the 8th set - there must be more than 8?
Here's the worst input, too, hope that helps someone (Draw with 50x50 after 100 moves)
My code breaks in case 9 after reading n in this line:
I checked and 0 < n <= 50 (sorry for all those submitions)
In other words - it should be ok there, 10000 bytes is not that much?
Darko
Code: Select all
50
1 1 +
2 2 +
3 3 +
4 4 +
5 5 +
6 6 +
7 7 +
8 8 +
9 9 +
10 10 +
11 11 +
12 12 +
13 13 +
14 14 +
15 15 +
16 16 +
17 17 +
18 18 +
19 19 +
20 20 +
21 21 +
22 22 +
23 23 +
24 24 +
25 25 +
26 26 +
27 27 +
28 28 +
29 29 +
30 30 +
31 31 +
32 32 +
33 33 +
34 34 +
35 35 +
36 36 +
37 37 +
38 38 +
39 39 +
40 40 +
41 41 +
42 42 +
43 43 +
44 44 +
45 45 +
46 46 +
47 47 +
48 48 +
49 49 +
50 50 +
1 2 +
1 1 -
2 2 -
3 3 -
4 4 -
5 5 -
6 6 -
7 7 -
8 8 -
9 9 -
10 10 -
11 11 -
12 12 -
13 13 -
14 14 -
15 15 -
16 16 -
17 17 -
18 18 -
19 19 -
20 20 -
21 21 -
22 22 -
23 23 -
24 24 -
25 25 -
26 26 -
27 27 -
28 28 -
29 29 -
30 30 -
31 31 -
32 32 -
33 33 -
34 34 -
35 35 -
36 36 -
37 37 -
38 38 -
39 39 -
40 40 -
41 41 -
42 42 -
43 43 -
44 44 -
45 45 -
46 46 -
47 47 -
48 48 -
49 49 -
0
My code breaks in case 9 after reading n in this line:
Code: Select all
grid = new byte[4][n][n];
In other words - it should be ok there, 10000 bytes is not that much?
Darko
-
- New poster
- Posts: 4
- Joined: Sun Jul 02, 2006 5:00 am
Problem 141 WA,need more samples
As the title,would some show me more samples of 141?
I've considered empty board.
I've considered empty board.
runtime error (signal 11) on prob 141
my code is crashing on 141. can anyone tell me what signal 11 means?
thanks all!
thanks all!
-
- New poster
- Posts: 22
- Joined: Mon Sep 19, 2005 4:58 am
- Contact:
-
- New poster
- Posts: 22
- Joined: Mon Sep 19, 2005 4:58 am
- Contact:
-
- New poster
- Posts: 22
- Joined: Mon Sep 19, 2005 4:58 am
- Contact: