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

Futymy's blog

By Futymy, history, 4 years ago, In English

Hi Codeforces,

In problem "Kefa and Dishes" (580D div 2), statements said that: "It is guaranteed that there are no such pairs of indexes i and j (1 ≤ i < j ≤ k), that xi = xj and yi = yj."

But in the 5th test case:

7 4 3 2 6 13 5 7 1 9 6 1 15 2 5 3 6 4 8

It's easy to see that x1 = x3. Was this test case invalid?

Read more »

 
 
 
 
  • Vote: I like it
  • -16
  • Vote: I do not like it