The contest is beginning! While preparing the contest, iSea wanted to print the teams' names separately on a single paper. Unfortunately, what iSea co ...
分类:
其他好文 时间:
2019-12-07 14:48:00
阅读次数:
104
http://codeforces.com/gym/101775/problem/M The 2018 World Cup will be hosted in Russia. 32 national teams will be divided into 8 groups. Each group co ...
分类:
其他好文 时间:
2019-11-29 10:34:47
阅读次数:
80
SELTEAM Selecting Teams题解 这道题有点坑啊, 首先先化简一下题意吧: 有$n$个人,你得选至少k个人组成足球队,在从足球队里选出精英队,最后从精英队中选出一位队长,问不同方案有多少种。 假如选$i$个人组成足球队,方案为$C_n^i$种,从$i$个人中选一人做队长,有$i$种 ...
分类:
其他好文 时间:
2019-11-11 21:12:59
阅读次数:
113
There are nn students at your university. The programming skill of the ii-th student is aiai. As a coach, you want to divide them into teams to prepar ...
分类:
其他好文 时间:
2019-11-06 12:54:44
阅读次数:
85
A. BerstagramPolycarp recently signed up to a new social network Berstagram. He immediately published n posts there. He assigned numbers from 1 to n t ...
分类:
其他好文 时间:
2019-10-30 13:16:15
阅读次数:
478
Yet Another Dividing into Teams 有一个长度为n的序列a1,a2...an,将他们分为若干组,使得每一组没有两个数的差为1,使分的组数尽可能少。 思路:将数组排序之后从前往后遍历,如果出现了两个数的差值为1 那么就得分两组 否则 一组 B1、B2 - Books Exc ...
分类:
其他好文 时间:
2019-10-29 21:56:08
阅读次数:
133
A. Yet Another Dividing into Teams Description Solution 1 #include <algorithm> 2 #include <cctype> 3 #include <cmath> 4 #include <cstdio> 5 #include < ...
分类:
其他好文 时间:
2019-10-23 20:04:59
阅读次数:
95
A. Yet Another Dividing into Teams 传送门 签到,有相邻的数字 ans=2,否则 ans=1 B. Books Exchange 传送门 找每个顶点处在的环的大小,dfs 行了 C. Good Numbers 传送门 我的方法是这样的,先将这个数转化为三进制来看。 ...
分类:
其他好文 时间:
2019-10-23 13:33:29
阅读次数:
110
比赛链接:传送门 Codeforces1249A. Yet Another Dividing into Teams(水题) 代码: #include <bits/stdc++.h> #define N 105 using namespace std; int a[N]; int main() { i ...
分类:
其他好文 时间:
2019-10-23 11:51:49
阅读次数:
95
The football season has just ended in Berland. According to the rules of Berland football, each match is played between two teams. The result of each ...
分类:
其他好文 时间:
2019-10-19 09:48:04
阅读次数:
68