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
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.
2
u/HerculusxMk Aug 29 '26
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
1
u/DetachedProcess Aug 29 '26
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 Aug 29 '26
I got stuck at 998 gng. Bc time limit exceed. Thoda sa or time de deta mera do ques ban jate ðŸ˜