someanth's blog

By someanth, history, 4 months ago, In English

in this contest my people's code give answer different and wrong answer on testcase

1 8 ((_())))

as per me correct answer is : output: 16

explaination : (((())))

  • Vote: I like it
  • -1
  • Vote: I do not like it

»
4 months ago, # |
  Vote: I like it 0 Vote: I do not like it

you miss read the question; all odd positions are must be '_' (assuming 1 based indexing)

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

Is your test case valid?

Statement

Your test case should be _ ( _ ( _ )_ )

Solution = ( ( ) ( ) ) ( )

Cost =5+1+1+1