Took me 30 mins i just did this for fun
LOL
I admire your commitment, but do not envy the hours you lost typing this.
which one
Real chad solution
This should be the beginning of every code
While this does work. I think this is just really hard to read.
Sorry I missed that totally bcoz i solved a 3kyu problem for the 1st time.
With 252 candies:
252 is not enough candies.
In python it is given that 9 kids require 2520 candies. 252 is enough
This seems impossible i used 6n+1, 6n-1 theorem which means that i'm reducing the loops by 66.67%.In my IDE it runs in 7.11 secs for 10000000.However here, it shows tle.
GIGACHAD
Loading collection data...
Took me 30 mins i just did this for fun
LOL
I admire your commitment, but do not envy the hours you lost typing this.
which one
Real chad solution
This should be the beginning of every code
While this does work. I think this is just really hard to read.
Sorry I missed that totally bcoz i solved a 3kyu problem for the 1st time.
With 252 candies:
252 is not enough candies.
In python it is given that 9 kids require 2520 candies. 252 is enough
This seems impossible i used 6n+1, 6n-1 theorem which means that i'm reducing the loops by 66.67%.In my IDE it runs in 7.11 secs for 10000000.However here, it shows tle.
GIGACHAD
GIGACHAD
GIGACHAD