DecodeX's blog

By DecodeX, history, 19 hours ago, In English

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)

  • Vote: I like it
  • +2
  • Vote: I do not like it

»
18 hours ago, # |
  Vote: I like it +1 Vote: I do not like it

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

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

    yes bro thanks

»
18 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

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