Comments
0

Please explain me how to solve problem E 1703E - Mirror Grid

yeah, if it weren’t for the useless output of indexes in C, I wouldn’t get a bunch of execution errors and would have passed 20 minutes earlier, perhaps there would have been enough time to solve task D

thank you so much, I'll try to implement

Hello, please hellp me. I need a hint for problem C. I have no idea

+6

unfortunately only russians can understand this

+5

I wish everyone to increase their rank)

well, i`m uctually bad speaking english, but i help you.

The task says: "for each i,l,r, the mean price of items from l to r on i-th shelf is an integer". This means that for any sequences the condition must be satisfied for example the sequence 1 3 5 7 if we take l = 2 and r = 4: 3 + 5 = 8; 8 / 2 = 4. (8 integer) this is true; if we take l = 1 and r = 3 1 + 3 + 5 = 9 9 / 3 = 3 (9 integer) this is true; Now let's look at your sequence 1 2 6 if we take l = 1 and r = 2. 1 + 2 = 3 3 = 2 = 1.5. This if not integer number; it will also be if we take other sequences in your example I think I was able to explain, if anything, write again

X_xor_X

I really liked problem C. Beautiful solution. And thanks for the hints