- 博客(45)
- 资源 (23)
- 收藏
- 关注
原创 Catch That Cow
Catch That CowTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 75017 Accepted: 23685DescriptionFarmer John has been informed of the location of a fugitiv
2016-07-30 10:48:22 125
原创 POJ 2251:Dungeon Master(三维BFS)
Dungeon MasterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 26580 Accepted: 10361DescriptionYou are trapped in a 3D dungeon and need to find the quick
2016-07-29 21:22:25 144
原创 hdu 1242 Rescue(BFS)(犯晕)
Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, ROADs, and GUARDs in the prison.Ang...
2016-07-29 17:23:38 243
原创 hdu Oil Deposits(DFS)
Problem DescriptionThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a...
2016-07-29 08:42:18 222
原创 hdu 1181 变形课(DFS)
Problem Description呃......变形课上Harry碰到了一点小麻烦,因为他并不像Hermione那样能够记住所有的咒语而随意的将一个棒球变成刺猬什么的,但是他发现了变形咒语的一个统一规律:如果咒语是以a开头b结尾的一个单词,那么它的作用就恰好是使A物体变成B物体.Harry已经将他所会的所有咒语都列成了一个表,他想让你帮忙计算一下他是否能完成老师的作业,将一个B(ball...
2016-07-28 20:51:08 209
原创 Red and Black(DFS)
DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent til
2016-07-28 15:13:27 225
原创 NYOJ 58-最少步数【DFS&&BFS】
描述这有一个迷宫,有0~8行和0~8列: 1,1,1,1,1,1,1,1,1 1,0,0,1,0,0,1,0,1 1,0,0,1,1,0,0,0,1 1,0,1,0,1,1,0,1,1 1,0,0,0,0,1,0,0,1 1,1,0,1,0,1,0,0,1 1,1,0,1,0,1,0,0,1 1,1,0,1,0,0,0,0,1 1,1,1,1,1,1,1,1,10...
2016-07-28 10:54:17 344
原创 hdoj 1969 Pie 【二分】
Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to
2016-07-27 20:08:33 185
原创 Expanding Rods
DescriptionWhen a thin rod of length L is heated n degrees, it expands to a new length L' = (1+n*C)*L, where C is the coefficient of heat expansion.When a thin rod is mounted on two solid walls ...
2016-07-27 16:29:19 204
原创 Crossed Ladders(二分)
DescriptionA narrow street is lined with tall buildings. An x foot long ladder is rested at the base of the building on the right side of the street and leans on the building on the left side. A y
2016-07-27 11:22:09 390
原创 The Frog's Games(二分)
Problem DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog a
2016-07-27 09:52:02 371
转载 Can you find it?(二分)
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj
2016-07-26 18:06:57 164
原创 HDU1551:Cable master(二分)
DescriptionInhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest ever. It wa
2016-07-26 16:01:05 197
原创 Can you solve this equation?(二分)
Problem DescriptionNow,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky. InputThe first line of the input conta...
2016-07-26 10:58:49 241
原创 Codeforces 612C Replace To Make Regular Bracket Sequence 【stack】
C. Replace To Make Regular Bracket Sequencetime limit per test 1 secondmemory limit per test 256 megabytesinput standard inputoutput standard outputYou are give
2016-07-25 21:38:52 200
原创 HDU1702:ACboy needs your help again!(栈和队列的应用)
Problem DescriptionACboy was kidnapped!! he miss his mother very much and is very scare now.You can't image how dark the room he was put into is, so poor :(.As a smart ACMer, you want to get A
2016-07-25 17:05:14 227
原创 C++栈和队列
使用标准库的栈和队列时,先包含相关的头文件#include<stack>#include<queue>定义栈如下:stack<int> stk;定义队列如下:queue<int> q;栈提供了如下的操作[cpp]view plaincopys.empty()如果栈为...
2016-07-25 15:47:30 165
原创 Radar Installation
DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea side. And any radar installation, l
2016-07-23 19:54:03 215
原创 Doing Homework again(贪心)
Problem DescriptionIgnatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in ...
2016-07-23 16:44:00 281
原创 Key Set(快速幂)
Problem Descriptionsoda has a set S with n integers {1,2,…,n}. A set is called key set if the sum of integers in the set is an even number. He wants to know how many nonempty subsets ofS a
2016-07-23 15:25:31 291
原创 Pseudoprime numbers
Problem DescriptionFermat's theorem states that for any prime number p and for any integer a > 1, a^p == a (mod p). That is, if we raise a to the pth power and divide by p, the remainder is a. Some
2016-07-23 11:56:24 256
原创 快速幂二进制取模算法
矩阵的快速幂是用来高效地计算矩阵的高次方的。将朴素的o(n)的时间复杂度,降到log(n)。这里先对原理(主要运用了矩阵乘法的结合律)做下简单形象的介绍:一般一个矩阵的n次方,我们会通过连乘n-1次来得到它的n次幂。 但做下简单的改进就能减少连乘的次数,方法如下: 把n个矩阵进行两两分组,比如:A*A*A*A*A*A => (A*A)*(A*A)...
2016-07-23 10:57:46 4630
原创 人见人爱A^B(快速幂求余)
Description求A^B的最后三位数表示的整数。 说明:A^B的含义是“A的B次方” Input输入数据包含多个测试实例,每个实例占一行,由两个正整数A和B组成(1 Output对于每个测试实例,请输出A^B的最后三位表示的整数,每个输出占一行。 Sample Input
2016-07-23 10:23:01 400
原创 快速幂取模
求n的m次方#includeint quickpow(int n,int m){ int ans=1,base=n; while(m) { if(m&1) ans*=base; base*=base; m>>=1; } return ans;}int main(){ int n,m; while(~scanf("%d%d",&n,&m)) {
2016-07-23 09:56:22 334
原创 TIANKENG’s restaurant(贪心)
TIANKENG’s restaurantTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 1054 Accepted Submission(s): 455Problem Description
2016-07-22 20:41:05 218
原创 Rightmost Digit
Problem DescriptionGiven a positive integer N, you should output the most right digit of N^N. InputThe input contains several test cases. The first line of the input is a single integer T
2016-07-22 17:52:02 296
原创 Repair the Wall(贪心)
Problem DescriptionLong time ago , Kitty lived in a small village. The air was fresh and the scenery was very beautiful. The only thing that troubled her is the typhoon.When the typhoon came, ev
2016-07-22 16:36:39 179
原创 Saving HDU
Problem Description话说上回讲到海东集团面临内外交困,公司的元老也只剩下XHD夫妇二人了。显然,作为多年拼搏的商人,XHD不会坐以待毙的。 一天,当他正在苦思冥想解困良策的时候,突然想到了自己的传家宝,那是公司成立的时候,父亲作为贺礼送来的一个锦囊,徐父当时交代,不到万不得已的时候,不要打开它。“现在不正是最需要的时候吗?”,一边想,XHD一边找到了这个精心保管的锦囊,
2016-07-22 16:04:25 160
原创 FatMouse' Trade
Description康康准备了 M 斤的食物, 准备跟舍长交换哲学之宝 ♂舍长有 N 个房间. 第 i 个房间有 J[i] 的 ♂ 需要 F[i] 斤的食物. 康康可以不换完整个房间的♂ ,他可以用 F[i]* a% 的食物 换 J[i]* a% 的 ♂ 现在给你一个实数 M 问你康康最多能获得多少的 ♂InputThe input consist
2016-07-22 15:36:02 221
原创 今年暑假不AC( 活动安排)
Description“今年暑假不AC?” “是的。” “那你干什么呢?” “看世界杯呀,笨蛋!” “@#$%^&*%...” 确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视了。 作为球迷,一定想看尽量多的完整的比赛,当然,作为新时代的好青年,你一定还会看一些其它的节目,比如新闻联播(永远不要忘记关心国家大事)、非常6+7、超级
2016-07-22 11:57:00 415
原创 Tricky Sum
Description求和是一种最常见的运算,我们经常做的就是1加到n的和。例如,1加到100的和是5050。但是现在,我们稍微变动一下求和方法,对于属于2的幂次的数,我们做的是减法,其余仍旧做加法。例如,当n=4的时候,最后的结果应该是-1-2+3-4=-4,因为1、2、4分别是2的0次方、2的1次方、2的2次方。现在请你来计算t次这样的运算。Input输入第
2016-07-22 09:00:35 291
原创 CodeForces 597A Divisibility(技巧)
DescriptionFind the number of k-divisible numbers on the segment [a, b]. In other words you need to find the number of such integer values x that a ≤ x ≤ b and x is divisible by k.In
2016-07-22 08:37:59 364
原创 Pasha and Stick
DescriptionPasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and t
2016-07-21 21:40:44 189
原创 New Year and Days
DescriptionToday is Wednesday, the third day of the week. What's more interesting is that tomorrow is the last day of the year 2015.Limak is a little polar bear. He enjoyed this year a lot. Now,
2016-07-21 21:22:48 150
原创 Patrick and Shopping
DescriptionToday Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two stores located near his house. There is a d1 meter long r
2016-07-21 17:13:56 166
原创 the Sum of Cube
Problem DescriptionA range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range. InputThe first line of the input is T(1 Each case of
2016-07-21 08:52:32 221
原创 不要62
Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字为所有含有4或62的号码。例如:62315 73418 88914都属于不吉利号码。但是,61152虽然含有6和
2016-07-21 08:48:51 249
原创 最小公倍数
Problem Description给定两个正整数,计算这两个数的最小公倍数。 Input输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数. Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input10 14 Sample Output70includ
2016-07-21 08:41:02 222
原创 素数判定
hdoj 2012Problem Description对于表达式n^2+n+41,当n在(x,y)范围内取整数值时(包括x,y)(-39 Input输入数据有多组,每组占一行,由两个整数x,y组成,当x=0,y=0时,表示输入结束,该行不做处理。 Output对于每个给定范围内的取值,如果表达式的值都为素数,则输出"OK",否则请输出“Sorry”,每组输
2016-07-21 08:38:26 720
原创 美素数
Problem Description 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出这个区间内有多少个美素数吗? Input
2016-07-20 20:38:27 619
MobaXterm.11.0_CN.zip
2020-04-21
MobaXterm.11.0.zip
2020-03-27
阿里编程规范华山版1.5.rar
2019-12-07
黑马商城加后端管理。。
2019-03-15
tomcat8解压版(免安装)
2019-03-02
HADOOP权威指南 第3版 中文版 完整版的
2018-02-08
即时通信课程设计
2018-02-08
快学Scala.中文完整版
2018-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人