Integer working in CPP but Not working in Java

Правка en1, от architsangal, 2023-08-07 21:09:38

Just wanted to get some clarification, for the problem D of today's contest (Codeforces Round 891 (Div. 3)). I got this weird error (runtime error) in the following submissions (using java):

When I submitted equivalent code using long, it worked (using java): - https://codeforces.me/contest/1857/submission/217686813

Using int, cpp code worked though: - https://codeforces.me/contest/1857/submission/217741962

Anyone has any idea what might have happened? I would really appreciate the help. Thanks in advance.

Теги java, cpp, integer, long

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский architsangal 2023-08-07 21:09:38 854 Initial revision (published)