Please read the new rule regarding the restriction on the use of AI tools. ×

Doubt in the Codeforces(918) Div4-C problem
Difference between en1 and en2, changed 1 character(s)
Hello folks,↵
Need some help in debugging..↵
The question is on the right : [Ques](https://codeforces.net/contest/1915/problem/C)↵
This is the code I
s submitted : [Code](https://codeforces.net/contest/1915/submission/239459218)↵
I don't know why I'm getting signed integer overflow, inspite of having all the variables as long long.↵
Can someone enlighten me on what I'm missing.↵
[contest:918][problem:1915C]

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Sujay_27 2023-12-29 10:58:13 1 Tiny change: 'the code Is submitted' -> 'the code I submitted'
en1 English Sujay_27 2023-12-29 10:57:43 452 Initial revision (published)