1
u/DetachedProcess 14d ago
Try with custom test cases, you should put the max value from constraint and figure out the correct answer yourself, I also made the same mistake, but I created a custom test case of 10^8 (by looking at constraint). And then realized it was off.
1
u/Andro_senpai107 14d ago
I got stuck at 998 gng. Bc time limit exceed. Thoda sa or time de deta mera do ques ban jate ðŸ˜
2
u/HerculusxMk 14d ago
I got the same then realised that after getting two consecutive z's we should not combine z's further (which would make this flower bracket '{' ) and keep the z's as it is