why my code gives different answers on different sites?

Правка en1, от CantLoseNow, 2022-09-24 17:02:18

200A - Cinema — i was solving this problem which was in a20j ladder A(No.100) . And i solved it using brute force using this submission[submission:173330360] . it worked for all testcases in my computer but on codeforces it went to an error of wrong answer. the input was totally same. i even tried an online compiler and that website gave me an even different answer than both of the previous answers. please help me. i know the solution is kinda messed up since i just started competitive programming but please i need help.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский CantLoseNow 2022-09-24 17:03:00 1 Tiny change: 'submission[submissio' -> 'submission [submissio'
en1 Английский CantLoseNow 2022-09-24 17:02:18 588 Initial revision (published)