Https://www.codechef.com/viewsolution/32283640

https://www.codechef.com/viewsolution/32283640
FFL LTIME . . . Need HELP!

when n=1 it will give WA

Thanks for the reply. Yeah u r right. I corrected that one. But, I guess I have some more errors. :sweat_smile:

1 Like

you are using dict…won’t support duplicate keys…
consider case
1
2 90
5 5
0 1
also line 9 and line 10 dd=[101], ff=[101], when all will be zero or all will be 1 it’ won’t produce any output without this modification

Yes Abhinav, actually I am new to dict. I didn’t know that.
thanks