码迷,mamicode.com
首页 >  
搜索关键字:crazy    ( 289个结果
【置换,推理】UVa 1315 - Creaz tea party
Dsecriptionn participants of «crazy tea party» sit around the table. Each minute one pair of neighbors can change their places. Find the minimum time ...
分类:其他好文   时间:2015-03-08 21:19:43    阅读次数:199
URAL 1295 Crazy Notions 数学 找规律
题意:输入一个n,计算ans= 1^n+2^n+3^n+4^n ,输出ans末尾几个0。 做法:规律题,刚开始暴力,看了下规律,发现最多末尾只会有2个零。而且有一定规律。所以可以找循环节,n%20。 或者用快速幂,我用快速幂,循环了一遍1到300000,发现确实末尾最多只有两个0,所以。。。...
分类:其他好文   时间:2015-03-07 20:02:28    阅读次数:183
URAL 1295. Crazy Notions(数学啊 & 找规律)
URAL 1295. Crazy Notions(数学啊 & 找规律)...
分类:其他好文   时间:2015-03-07 11:38:06    阅读次数:124
Hdu 1381 Crazy Search
Problem地址:http://acm.hdu.edu.cn/showproblem.php?pid=1381此题可以用哈希数组求解,至于什么是哈希,可以先看以下这篇推荐文章,写得挺不错的。推荐:http://www.cnblogs.com/yangecnu/p/Introduce-Hashtab...
分类:其他好文   时间:2015-02-09 00:44:07    阅读次数:247
hdu4336 概率dp
http://acm.hdu.edu.cn/showproblem.php?pid=4336 Problem Description In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect...
分类:其他好文   时间:2015-02-04 18:44:41    阅读次数:177
uva1315 Crazy tea party(找规律)
题意就是说把顺时针排的1到n换成逆时针排的需要的最少交换步数。如果是线形的一串数,需要的交换次数就是个冒泡排序的交换次数:n*(n-1)/2,或者用a[i]=(i-1)+a[i-1]推出来。对于环形,切成两个线形就行了,通过观察规律知:越接近平均切开越好。#include#include#inclu...
分类:其他好文   时间:2015-02-04 00:25:38    阅读次数:223
hdu 3157 Crazy Circuits 网络流
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3157You’ve just built a circuit board for your new robot, and now you need to power it. Your robot circ...
分类:其他好文   时间:2015-02-03 20:59:07    阅读次数:429
bzoj3850 ZCC Loves Codefires
DescriptionThough ZCC has many Fans, ZCC himself is a crazy Fan of a coder, called "Memset137".It was on Codefires(CF), an online competitive programm...
分类:其他好文   时间:2015-02-01 20:16:10    阅读次数:238
Crazy Shopping(拓扑排序+完全背包)
Crazy Shopping(拓扑排序+完全背包)Because of the 90th anniversary of theCoherent & Cute Patchouli(C.C.P),Kawashiro Nitoridecides to buy a lot of rare things to...
分类:编程语言   时间:2015-01-26 20:57:38    阅读次数:220
ZOJ3524Crazy Shopping(完全背包+拓扑排序)经典
H - Crazy Shopping Time Limit:3000MS     Memory Limit:65536KB     64bit IO Format:%lld & %llu Submit Status Description Because of the 90th anniversary of the Coherent & Cute Patchouli...
分类:编程语言   时间:2015-01-17 23:35:41    阅读次数:358
289条   上一页 1 ... 20 21 22 23 24 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!