Partially accepted problem

Dear coders any suggestions for me to avoid this…
while submitting programs in contest/practise most programs are partially accepted…
that means some subtask 2 casues TLE and some subtask causes WA.

most of the time subtask 1 is meant for brute force and other with optimized algo… so think how you can optamize your brute force,look editorials,other solution etc ,search for the reason of TLE.
WA is due to wrong logic or integer overflow or may be some others

1 Like

If your code is optimized try using data types with bigger range, like long instead of int, etc.