Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

ashishranjan2828's blog

By ashishranjan2828, history, 8 years ago, In English

http://ideone.com/XwHMrW

my solution is working fine for first test case and for second test answer should be 508 but it is giving 494... i have used lazy propagation concept...

plz help