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

Please spot the error!

Revision en3, by Whitewiz, 2024-07-20 12:39:58

problem

My solution : (https://mirror.codeforces.com/contest/1651/submission/271500008)

MY idea :

Optimal strategy is to connect the extremes of the arrays to the other network. In doing so, we may connect the extremes of both arrays to each other.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Whitewiz 2024-07-20 12:39:58 168
en2 English Whitewiz 2024-07-20 12:36:04 1485
en1 English Whitewiz 2024-07-20 12:33:51 1601 Initial revision (published)