摘要:
小 C 是 $n$ 个学生的老师,他现在要把所有学生分成两组,他会按照以下这些要求: 1、如果两个同学是好朋友那么他们就不会被分到同一组 2、小 C 想最小化两组人数差值 现在请你写一个程序来帮助小 C 分组,数据保证有合法的方案,如果有多种合法方案则输出字典序最小的 输入格式 第一行两个整数分别表 阅读全文
posted @ 2022-05-30 21:28
灰鲭鲨
阅读(362)
评论(0)
推荐(0)
摘要:
题目描述 Farmer John's cows are getting restless about their poor telephone service; they want FJ to replace the old telephone wire with new, more efficie 阅读全文
posted @ 2022-05-30 20:46
灰鲭鲨
阅读(59)
评论(0)
推荐(0)
摘要:
题目描述 For their physical fitness program, N (2 ≤ N ≤ 1,000,000) cows have decided to run a relay race using the T (2 ≤ T ≤ 100) cow trails throughout t 阅读全文
posted @ 2022-05-30 12:31
灰鲭鲨
阅读(37)
评论(0)
推荐(0)

浙公网安备 33010602011771号