LaKsHiTh_'s blog

By LaKsHiTh_, history, 5 years ago, In English

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:

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
5 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I have found what's wrong. Official statement did not contain this but PEG judge had this:

Your submission must contain solutions for all the subtasks, and can have a maximum size of 25 MiB. The odometer programs for each subtask must be preceded by the line [SUBTASK #], where # is the subtask number.

while the Official statement said

You have to submit exactly one file per subtask