摘要:
链接:http://codeforces.com/contest/370/problem/C题意:有n双手袜(1n/2,则不能令所有袜子所有手颜色不同。输出方案是,maxc的颜色选一个,其他颜色选一个,组成一双。注意一双手袜拆分成一个左手手袜,一个右手手袜,位置不一样。最后剩余的是maxc颜色的袜子,直接输出。若maxc2#include3usingnamespacestd;45constintN=5005;6constintM=105;78intmain()9{10intn,m,a[M],c,maxc,ans[2*N],indexa,finalAns[2*N];11cin>>n& 阅读全文
posted @ 2013-12-08 14:56
byluoluo
阅读(530)
评论(0)
推荐(0)

浙公网安备 33010602011771号