求问USACO题目的翻译QAQ
  • 板块学术版
  • 楼主so_find_skind
  • 当前回复2
  • 已保存回复2
  • 发布时间2023/12/16 19:35
  • 上次更新2023/12/16 19:38:24
查看原帖
求问USACO题目的翻译QAQ
756179
so_find_skind楼主2023/12/16 19:35

Microsoft edge傻逼翻译根本看不懂第二题。。。(指银升金)

英文题面:

Farmer John has N barns (3≤N≤5⋅105 ), of which K (3≤K≤N ) distinct pairs of barns are connected.

First, Annabelle assigns each barn a distinct integer label in the range [1,N] , and observes that the barns with labels a1,…,aK are connected in a cycle, in that order. That is, barns ai and ai+1 are connected for all 1≤i<K , and barns aK and a1 are also connected. All ai are distinct.

Next, Bessie also assigns each barn a distinct integer label in the range [1,N] and observes that the barns with labels b1,…,bK are connected in a cycle, in that order. All bi are distinct.

Some (possibly none or all) barns are assigned the same label by Annabelle and Bessie. Compute the maximum possible number of barns that are assigned the same label by Annabelle and Bessie.
2023/12/16 19:35
加载中...