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

Автор jakeob, история, 9 дней назад, По-английски

The below code is the solution to some USACO problem and I when submitting I noticed that my submission did not get the full credit so I spend some time looking around my code and found out that there is somehow a problem with the initialization of the map when I initialize map m like this the:

My Code

the code doesn't pass all test cases. But when I did it manually like in the example below it works perfectly. So I would like to ask you why that is?

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

»
9 дней назад, # |
  Проголосовать: нравится +12 Проголосовать: не нравится

In your initial program, you have " Pig" instead of "Pig".

  • »
    »
    9 дней назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Ooh, thank you so much, I really did not notice that. Ok so that means both ways of initializing maps are valid. Thanks