Description A little bear Limak plays a game. He has five cards. There is one number written on each card. Each number is a positive integer. Limak ca ...
分类:
其他好文 时间:
2016-07-11 10:37:08
阅读次数:
242
Description 小春现在很清闲,面对书桌上的N张牌,他决定给每张染色,目前小春只有3种颜色:红色,蓝色,绿色.他询问Sun有多少种染色方案,Sun很快就给出了答案.进一步,小春要求染出Sr张红色,Sb张蓝色,Sg张绝色.他又询问有多少种方案,Sun想了一下,又给出了正确答案. 最后小春发明了 ...
分类:
其他好文 时间:
2016-06-26 23:49:59
阅读次数:
184
A Bear and Five Cards 贪心
B Bear and Finding Criminals 枚举
C Bear and Prime 100 数论
D Bear and Tower of Cubes 贪心
E Bear and Square Grid Sliding-window Technique...
分类:
其他好文 时间:
2016-06-12 02:30:49
阅读次数:
253
Gap Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 1829 Accepted: 829 Description Let's play a card game called Gap. You have 28 cards lab ...
分类:
其他好文 时间:
2016-06-11 21:28:07
阅读次数:
235
题目描述 Most of you have played card games (and if you haven’t, why not???) in which the deck of cards is randomized by shuf?ing it one or more times.A p ...
分类:
其他好文 时间:
2016-06-11 11:41:48
阅读次数:
212
#include<stdio.h>int main(){ int a[5],flag[2]={1,1},same[2]={0},ans=0; for(int i=0;i<5;i++) { scanf("%d",&a[i]); ans+=a[i]; } for(int k=0,i=0;i<5;i++) ...
分类:
其他好文 时间:
2016-06-10 12:18:31
阅读次数:
289
题目链接: A. Bear and Five Cards ...
分类:
其他好文 时间:
2016-06-09 12:15:25
阅读次数:
354
http://symfony.com/doc/master/bundles/FOSUserBundle/adding_invitation_registration.html 上面的构建实体注册服务之类的按照文档去操作。对应自己的地方稍加修改即可。 运用方法 ...
分类:
其他好文 时间:
2016-06-06 11:51:04
阅读次数:
152
描述 http://www.lydsy.com/JudgeOnline/problem.php?id=1004 共n个卡片,染成r,b,g三种颜色,每种颜色的个数有规定.给出一些置换,可以由置换得到的染色方案视为等价的,求等价类计数. 分析 给出置换求等价类计数,用Burnside引理:等价类计数= ...
分类:
其他好文 时间:
2016-06-01 19:54:14
阅读次数:
228
6月1日 1.复习: 欧几里德算法和扩展欧几里德算法 Eratosthenes筛法 2.学习: 模线性方程组 除法取模(乘法逆元) 置换,Burnside引理,Polya定理 费马小定理 3.做题: 1004: [HNOI2008]Cards 1004: [HNOI2008]Cards ...
分类:
其他好文 时间:
2016-06-01 19:30:55
阅读次数:
225