Comments

Hi! Can someone help me understand sliding window approach in question B? Thank you! :)

0

Oh, got it. Thanks!

0

Can anyone please explain how the if(j > n) condition would ever be fulfilled in the editorial of div2c? Thanks in advance! :)

On kiyotaka → Codeforces Global Round 3, 7 years ago
0

Thank you. Finally submitted it successfully! :)

On kiyotaka → Codeforces Global Round 3, 7 years ago
0

Can anyone please check my following submission for Problem B and figure out what's wrong with it? I got a runtime error on test case 9, and my logic seems to be working fine for all cases I'm dry running it for. Thanks in advance! :) https://codeforces.me/contest/1148/submission/54942140