I tried the Pebbling odometer task of IOI 2012. I wrote an output for the subtask 1 and uploaded it to the wcipeg judge. But i got WA. Then i downloaded the input data and tried them manually. They gave the correct answer. Then i uploaded the official Solution given by ioinformatics.org. Still it's WA. Does anyone know why this happens.
My solution:
left
rr:
pebble r
halt
ll:
pebble l
halt
r:
get
right
right
move
jump ll
l:
get
left
left
move
jump rr
Official Solution:
# Solution for subtask 1 of Odometer.
# Author: Giovanni Paolini
right
jump A
B:
get
move
pebble C
halt
C:
get
left
left
move
right
right
A:
pebble B
Result:
I have found what's wrong. Official statement did not contain this but PEG judge had this:
while the Official statement said