自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

JYZ's Blog

Coding our future.

  • 博客(61)
  • 收藏
  • 关注

原创 HDU 5140 Hun Gui Wei Company KDTree裸题

Hun Gui Wei Company Time Limit: 8000/4000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 491    Accepted Submission(s): 126Problem Description

2017-08-16 21:19:22 1572

原创 HDU 5126 stars KDTree

starsTime Limit: 20000/10000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 980    Accepted Submission(s): 311Problem DescriptionJohn loves to see th

2017-08-14 21:40:22 388

原创 HDU 5794 A Simple Chess Lucas大数组合数取模

A Simple ChessTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionThere is a n×m board, a chess want to go to the position (n,m) f

2017-05-01 18:51:47 429

原创 HDU 5791 Two

TwoTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionAlice gets two sequences A and B. A easy problem comes. How many pair of sequen

2017-04-20 21:23:22 343

原创 HDU 5783 Divide the Sequence

Divide the SequenceTime Limit: 5000/2500 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionAlice has a sequence A, She wants to split A into as much as po

2017-04-20 21:20:10 618

原创 HDU 5792 World is Exploding

World is ExplodingTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionGiven a sequence A with length n,count how many quadruple (a,b,c

2017-04-20 21:16:30 264

原创 HDU 5381 The sum of gcd

The sum of gcdTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionYou have an array A,the length of A is nLet f(l,r)=∑ri=l∑rj=igcd

2017-04-12 23:07:04 351

原创 HDU 5381 The sum of gcd

The sum of gcdTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionYou have an array A,the length of A is nLet f(l,r)=∑ri=l∑rj=ig

2017-04-12 22:25:21 285

原创 莫队算法

2038: [2009国家集训队]小Z的袜子(hose)Time Limit: 20 Sec  Memory Limit: 259 MB小Z的袜子Description作为一个生活散漫的人,小Z每天早上都要耗费很久从一堆五颜六色的袜子中找出一双来穿。终于有一天,小Z再也无法忍受这恼人的找袜子过程,于是他决定听天由命……具体来说,小Z把这N只袜子从1到N编号,

2017-04-12 20:17:50 286

原创 POJ 1236 Network of Schools

Network of SchoolsTime Limit: 1000MS Memory Limit: 10000K   DescriptionA number of schools are connected to a computer network. Agreements have been developed amo

2017-04-10 23:15:47 340

原创 HDU 5384 Danganronpa

DanganronpaTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Problem DescriptionDanganronpa is a video game franchise created and developed by Spik

2017-04-10 21:03:45 311

原创 HDU 5384 Danganronpa

DanganronpaTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Problem DescriptionDanganronpa is a video game franchise created and developed by Spik

2017-04-09 23:26:29 287

原创 HDU 2846 Repository

RepositoryTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionWhen you go shopping, you can search in repository for avalible mercha

2017-04-09 19:55:18 287

原创 POJ 2001 Shortest Prefixes

Shortest PrefixesTime Limit: 1000MS Memory Limit: 30000K   DescriptionA prefix of a string is a substring starting at the beginning of the given string. The prefi

2017-04-09 19:50:51 270

原创 HDU 1671 Phone List

Phone ListTime Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionGiven a list of phone numbers, determine if it is consistent in the

2017-04-09 19:38:23 308

原创 字典树模板

PPT链接:http://pan.baidu.com/s/1slnnXlr   密码:ckbd

2017-04-09 19:32:57 258

原创 HDU 1251 统计难题

统计难题Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 131070/65535 K (Java/Others)Problem DescriptionIgnatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自

2017-04-09 18:44:54 302

原创 Ubuntu 挂载文件系统

Ubuntu 挂载文件系统

2017-04-07 14:21:49 1945

转载 HDU 5389 Zero Escape

Zero EscapeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Problem DescriptionZero Escape, is a visual novel adventure video game directed by Kotaro Uchi

2017-04-06 21:18:16 259

原创 HDU 5386 Cover

CoverTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Special JudgeProblem DescriptionYou have an n∗n matrix.Every grid has a color.Now there are two

2017-04-06 21:15:42 271

原创 HDU 5387 Clock

ClockTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionGive a time.(hh:mm:ss),you should answer the angle between any two of the minut

2017-04-06 21:12:51 254

原创 HDU 5726 GCD

GCDTime Limit: 10000/5000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionGive you a sequence of N(N≤100,000) integers : a1,...,an(0ai≤1000,000,000).

2017-03-28 12:34:13 449

原创 HDU 5723 Abandoned country

Abandoned countryTime Limit: 8000/4000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionAn abandoned country has n(n≤100000) villages which are numbered

2017-03-28 12:05:08 318

原创 HDU 1106 排序

排序Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就

2017-03-23 23:59:48 244

原创 POJ 3650 The Seven Percent Solution

The Seven Percent SolutionTime Limit: 1000MS Memory Limit: 65536K   DescriptionUniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc

2017-03-23 23:58:04 370

原创 HDU 1969 Pie

PieTime Limit: 5000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionMy birthday is coming up and traditionally I'm serving pie. Not just one pie, no,

2017-03-23 23:55:04 227

原创 HDU 2899 Strange fuction

Strange fuctionTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionNow, here is a fuction:  F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0

2017-03-23 23:50:46 307

原创 POJ 1434 Fill the Cisterns!

Fill the Cisterns!Time Limit: 5000MS Memory Limit: 10000K   DescriptionDuring the next century certain regions on earth will experience severe water shortages. Th

2017-03-23 23:47:49 211

原创 UVA - 714 Copying Books

题目链接:UVA 714#include#include#include using namespace std;const int maxn = 10000000 + 5;int n, m;long long _max,left,right,_min;int a[maxn];int ans[510];bool judge(long long mid) //判断能

2017-03-23 23:41:13 274

原创 ZOJ 3203 Light Bulb

Light BulbTime Limit: 1 Second      Memory Limit: 32768 KBCompared to wildleopard's wealthiness, his brother mildleopard is rather poor. His house is narrow and he has only one light bulb in h

2017-03-23 23:34:56 302

原创 CodeForces - 371C Hamburgers

C. Hamburgerstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarpus loves hamburgers very much. He espe

2017-03-23 23:31:15 490

原创 HDU 2141 Can you find it?

Can you find it?Time Limit: 10000/3000 MS (Java/Others)    Memory Limit: 32768/10000 K (Java/Others)Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a num

2017-03-23 23:27:45 284

原创 POJ 3518 Prime Gap

Prime GapTime Limit: 5000MS Memory Limit: 65536K   DescriptionThe sequence of n − 1 consecutive composite numbers (positive integers that are not prime and not eq

2017-03-23 23:26:18 294

原创 POJ 3273 Monthly Expense

Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536K   DescriptionFarmer John is an astounding accounting wizard and has realized he might run out of money to r

2017-03-23 23:24:44 236

原创 HDU 2159 FATE

HDU 2159 FATEDP动态规划题目链接HDU 2159题目Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/OthersProblem Description最近xhd正在玩一款叫做FATE的游戏,为了得到极品装备,xhd在不停的杀怪做任务。久而久之xhd

2017-03-23 23:20:58 217

原创 二分、三分查找算法模板

二分、三分查找算法的原理及实现代码。简单定义在一个单调有序的集合中查找元素,每次将集合分为左右两部分,判断解在哪个部分中并调整集合上下界,重复直到找到目标元素。时间复杂度O (logn),优于直接顺序查找O(n)原理左闭右开二分123456789101112131415161718int search2(int arr

2017-03-23 23:17:58 1860

原创 POJ 1905 Expanding Rods

Expanding RodsTime Limit: 1000MS Memory Limit: 30000K   DescriptionWhen a thin rod of length L is heated n degrees, it expands to a new length L'=(1+n*C)*L, where

2017-03-23 23:15:49 269

原创 HDU 2004 成绩转换

成绩转换Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Problem Description输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下:90~100为A;80~89为B;70~79为C;60~69为D;0~59为

2017-03-23 23:10:28 223

原创 HDU 2033 人见人爱A+B

人见人爱A+BTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionHDOJ上面已经有10来道A+B的题目了,相信这些题目曾经是大家的最爱,希望今天的这个A+B能给大家带来好运,也希望这个题目能唤起大家对ACM曾经的热爱。

2017-03-23 23:08:42 222

原创 HDU 1012 u Calculate e

u Calculate eTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go

2017-03-23 23:07:23 244

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除