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

Автор DecodeX, история, 19 часов назад, По-английски

Hey thanks for helping me , I am not getting why this code not getting accepted like there are just three cases and it is failing at 2071 test case {compiler message -> wrong answer 2071st numbers differ — expected: '45', found: '46'}

Please help me this are my submission and below is question link, 307205360,307211125

problem -> 2005B1 - The Strict Teacher (Easy Version)

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

»
18 часов назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

you didn't check if te.first<te.second

  • »
    »
    18 часов назад, # ^ |
      Проголосовать: нравится +1 Проголосовать: не нравится

    yes bro thanks

»
18 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Because it is not necessary for the second teacher to be ahead of the first teacher and you are basically assuming it is.