Refer to this Question
I made a submission to this problem by using data types for variables t, n, i, count
as int
. The submission was rejected.
I changed the data type from int
to long int
, it got accepted.
Why did this happen. An explain with adequate information will be appreciated!
Submission that got rejected -> Rejected
Submission that got accepted -> Accepted