wuhudsm's blog

By wuhudsm, history, 11 months ago, In English

A

code
solution

B

code
solution

C

code
solution

D

code
solution

E

code
solution
  • Vote: I like it
  • +20
  • Vote: I do not like it

»
11 months ago, # |
Rev. 2   Vote: I like it +3 Vote: I do not like it
More details for solution in B
  • »
    »
    11 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    max value among those indices mentioned in editorial?

    • »
      »
      »
      11 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      yes, "Otherwise, skip the maximum number." i wanted to proof why its right.

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

In Problem B my solution is same with tutorial. And unfortunately test cases are hidden.

Can sb tell why this code is wrong?

EDIT: I found my mistake

  • »
    »
    11 months ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    Why test cases are hidden?

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

    if there are some duplicate in indixes, and repeats in whole table, u need to choose it

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

wuhudsm Can You Open Hidden TestCases For Upsolving?

  • »
    »
    11 months ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    Sorry, it is not possible to show test data in all gym contests