develooper Front page | perl.golf | Postings from September 2002

Clarifications to tpr(0,5a)

Thread Next
From:
Juho Snellman
Date:
September 2, 2002 13:35
Subject:
Clarifications to tpr(0,5a)
Message ID:
20020902203507.GA21027@iki.fi
We've clarified a couple of ambiguities in the spec, as well as a 
fixed a conflict between the spec and the tests. The updated files will
be available on perlgolf.sf.net later, but here's a quick list on the
changes:

  Input:
    * Numbers may have leading '0':s. 
    * Negative numbers will have a leading '-'. 
    * Positive numbers won't have a leading '+'.
    * There may be whitespace between the '-' and the first digit 
      of a negative number.
  
  Output:   
    * The test program required the output to have the same tokens
      (excepting parens) as the input. A strict reading of the spec
      only requires it to have the same integers + operators. We've
      now defined "the same integer" as "integers having the same
      value". That is, for the number 007 you may output 7, 07, 007,
      0007, etc. The numbers are always in base-10.

Sorry for the inconvenience.

-- 
Juho Snellman

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About