Блог пользователя LaKsHiTh_

Автор LaKsHiTh_, история, 4 года назад, По-английски

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:

  • Проголосовать: нравится
  • +5
  • Проголосовать: не нравится

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

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