339 - SameGame Simulation
Moderator: Board moderators
Run your code on the following input:
Code: Select all
9 31
1 0 0 0 1 0 1 1 1 1 1 0 1 1 1 0 1 1 0 1 1 1 1 1 1 0 0 0 0 1 0
0 0 0 0 1 1 0 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 0 0 1 0 0 1 1 1
1 1 0 0 1 0 0 1 1 0 0 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 0 0 0
0 0 0 1 1 1 0 1 1 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0 1 0 1 0 0 0 1
1 1 0 0 0 0 0 0 1 1 0 1 0 1 1 0 1 1 0 0 1 0 0 0 1 1 1 0 1 0 1
1 1 1 1 0 0 1 1 0 1 0 0 1 0 1 0 0 1 1 1 1 1 1 1 0 0 1 0 1 1 1
1 0 1 0 0 0 0 1 0 0 0 0 1 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 0 1 1
0 0 0 0 1 1 0 1 1 1 1 1 0 1 0 1 0 0 1 1 0 0 0 1 1 0 1 0 1 1 0
0 0 0 0 1 1 0 0 0 1 0 1 0 1 1 0 1 0 1 1 0 1 1 0 0 0 0 1 1 1 0
1 27
-6 23
27 -17
-4 19
-19 -31
18 -17
-31 20
-21 16
13 -22
-9 15
-25 20
29 4
8 -21
-20 -13
-15 20
-21 -3
23 -9
4 -25
25 -1
9 -14
-12 14
-23 -1
24 -25
23 -3
-1 -7
-2 -31
19 25
13 12
18 -11
-12 -15
14 15
26 5
-6 1
19 16
30 7
12 -1
0 0
Thank u very much minskcity. After testing your input set I found my bug and managed to get accepted. I changed my code a little bit and got it!!
Thank u again
.
Thank u again

Ami ekhono shopno dekhi...
HomePage
HomePage
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
?w
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
-
- New poster
- Posts: 16
- Joined: Mon Jun 26, 2006 9:33 am
- Contact:
samegame simulation: PE all the way
I've use minskcity previous input and the following is the output:
exactly the same spacing, blank lines only between separate test cases, yet i cant seem to figure out why pe 
below is my coding.. (im not sure whether posting PE coding is allowed now, since PE is now considered as "not correct");
Code: Select all
Grid 1.
1
Grid 2.
0
Grid 3.
0
0 0 0
Grid 4.
Game Won

below is my coding.. (im not sure whether posting PE coding is allowed now, since PE is now considered as "not correct");
Code: Select all
removed after AC
Last edited by gradientcurl on Thu Dec 21, 2006 8:23 pm, edited 1 time in total.
Use
Hope you get accepted.
Code: Select all
printf("\n"); // added
return 0; // I think you know where it is :-)
Ami ekhono shopno dekhi...
HomePage
HomePage
-
- New poster
- Posts: 16
- Joined: Mon Jun 26, 2006 9:33 am
- Contact:
thanks
thanks jan, it was useful.
-
- New poster
- Posts: 1
- Joined: Fri Jun 01, 2007 12:51 pm
Do you tried Jan's last post?jordi fierro wrote:Hi! I've tried all your i/o you write in this post and i get the same results as you, and i still get WA.![]()
Can anybody post more sample inputs or tell me which are the difficult inputs? Thank you a lot and sorry about my english!!
As an aside, I think this problem has no PE: because if you don't have spaces in the place of empty cells, you'll get WA. It means that this problem won't get PE at all (or that would be PE rather then WA).
So if you didn't print the last blank line, it will also considered as WA. Jan's last post means this. (Or in other words, this problem requires a blank line after each test case.)
I got WA before applying this, and got Acc after.
LPH [acronym]
= Let Program Heal us
-- New Uncyclopedian Dictionary, Minmei Publishing Co.
= Let Program Heal us
-- New Uncyclopedian Dictionary, Minmei Publishing Co.
-
- Learning poster
- Posts: 69
- Joined: Mon Feb 09, 2015 1:56 am
Re: 339 - SameGame Simulation
Some ( possibly ) helpful test cases
Input:
Output:
Input:
Code: Select all
4 4
0 0 0 2
0 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