自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

>>--» 唯n1.情缘«--<<

一个你,一个我,一颗心,不松手,不转身,在一起,一辈子。唯爱一生!

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

原创 epoll+线程池实现http文件下载

server.c#include#include#include#include#include#include#include#include#include#include#include"threadpool.h"#include#include#define MAX_LEN 1024#define MAX_SIZE 100void *worker(voi

2016-08-01 17:16:20 730

原创 HDoj.1864 最大报销额【动归、背包】 2016/04/11

最大报销额Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 21058    Accepted Submission(s): 6313Problem Description现有一笔经费可以报销一定额度的发票。允

2016-04-11 19:07:05 459

原创 HDoj.2955 Robberies【动归、背包】 2016/04/11

RobberiesTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18710    Accepted Submission(s): 6906Problem DescriptionThe aspiring Ro

2016-04-11 18:16:55 436

原创 HDoj.1789 Doing Homework again【贪心】 2016/04/11

Doing Homework againTime Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10533    Accepted Submission(s): 6168Problem DescriptionIgna

2016-04-11 17:00:44 373

原创 HDoj.5655 CA Loves Stick【基础】 2016/04/04

CA Loves StickTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 636    Accepted Submission(s): 224Problem DescriptionCA loves to

2016-04-04 14:37:05 441

原创 Hdoj.4291 A Short problem【矩阵快速幂+循环节处理】 2015/12/09

A Short problemTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2384    Accepted Submission(s): 834Problem Description  According

2015-12-09 11:13:45 408

原创 Hdoj.5407 CRB and Candies【数论。。。】 2015/12/05

CRB and CandiesTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 845    Accepted Submission(s): 405Problem DescriptionCRB has N

2015-12-05 21:38:55 332

原创 Hdoj.5578 Friendship of Frog【字符串,暴力】 2015/12/04

Friendship of FrogTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 181    Accepted Submission(s): 130Problem DescriptionN frogs

2015-12-04 21:06:30 459

原创 Hdoj.5584 LCM Walk【数论,规律】 2015/12/04

LCM WalkTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 205    Accepted Submission(s): 111Problem DescriptionA frog has just lea

2015-12-04 20:52:24 1043

原创 Hdoj.5585 Numbers【简单题,水】 2015/12/03

NumbersTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 448    Accepted Submission(s): 279Problem DescriptionThere is a number N.

2015-12-03 21:04:11 339

原创 Hdoj.2058 The sum problem【数列】 2015/11/24

The sum problemTime Limit: 5000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19595    Accepted Submission(s): 5779Problem DescriptionGiven a s

2015-11-24 22:26:43 487

原创 Poj.2689 Prime Distance【素数筛选】 2015/11/13

Prime DistanceTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 14884 Accepted: 3949DescriptionThe branch of mathematics called number theory is about pro

2015-11-13 21:52:04 336

原创 Poj.1730 Perfect Pth Powers【数学】 2015/11/13

Perfect Pth PowersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 17232 Accepted: 3946DescriptionWe say that x is a perfect square if, for some integer

2015-11-13 20:11:56 386

原创 ZOJ.2952 Find All M^N Please【数学】 2015/10/20

Find All M^N PleaseTime Limit: 2 Seconds      Memory Limit: 65536 KB Recently, Joey has special interest in the positive numbers that could be represented asM ^ N (M to the power N), whe

2015-10-20 22:31:40 731 2

原创 ZOJ.1439 Area Ratio【三角形外接圆内切圆】 2015/10/20

Area RatioTime Limit: 2 Seconds      Memory Limit: 65536 KB To make things easier, WishingBone decides to put this simple geometry problem at the beginning. Given a triangle, what is the r

2015-10-20 19:53:38 750

原创 ZOJ.1152 A Mathematical Curiosity 2015/10/12

A Mathematical CuriosityTime Limit: 2 Seconds      Memory Limit: 65536 KB Given two integers n and m, count the number of pairs of integers (a,b) such that 0 This problem contains mult

2015-10-12 22:19:50 480

原创 ZOJ.2679 Old Bill【水】 2015/10/12

Old BillTime Limit: 2 Seconds      Memory Limit: 65536 KB Among grandfather��s papers a bill was found:72 turkeys $_679_The first and the last digits of the number that obviously repre

2015-10-12 22:03:47 581

原创 Poj.1775 Sum of Factorials【略坑】 2015/10/12

Sum of FactorialsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 13191 Accepted: 4371DescriptionJohn von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a

2015-10-12 12:15:02 367

原创 ZOJ.2358 Sum of Factorials【略坑】 2015/10/12

Sum of FactorialsTime Limit: 2 Seconds      Memory Limit: 65536 KB John von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a Hungarian-American mathematician who made important contributi

2015-10-12 09:50:00 389

原创 ZOJ.3131 Digital Clock【打表】 2015/10/11

Digital ClockTime Limit: 1 Second      Memory Limit: 32768 KB Digital clocks usually show the time in the form hh:mm:ss, where hh is a number between 00 and 23, and both mm and ss are nu

2015-10-11 21:40:47 383

原创 ZOJ.3175 Number of Containers【数学问题】 2015/10/11

Number of ContainersTime Limit: 1 Second      Memory Limit: 32768 KB For two integers m and k, k is said to be a container ofm if k is divisible by m. Given 2 positive integers n and m

2015-10-11 16:52:13 495

原创 ZOJ.3336 Friend Number II【有点水】 2015/10/09

Friend Number IITime Limit: 1 Second      Memory Limit: 32768 KB Given a positive integer x, let S(x) denotes the sum of all x's digits. Two integersx and y are friend numbers if S(x)=S(

2015-10-09 17:25:21 465

原创 ZOJ.2540 Form a Square【水】 2015/10/01

Form a SquareTime Limit: 2 Seconds      Memory Limit: 65536 KB Have you ever put up a tent on top of a mountain? The difficulty lies in finding the appropriate positions to fix the nails on

2015-10-01 06:13:45 452

原创 ZOJ.2729 Sum Up【暴力水~】 2015/09/29

Sum UpTime Limit: 2 Seconds      Memory Limit: 65536 KB Vivid has stored a piece of private information, which consisted of a serial of integers in a secret number format. All the stored n

2015-09-29 22:46:30 326

原创 Poj.3086 Triangular Sums【水~】 2015/09/24

Triangular SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6677 Accepted: 4747DescriptionThe nth Triangular number, T(n) = 1 + … + n, is the sum o

2015-09-24 22:17:55 299

原创 ZOJ.2773 Triangular Sums【水~】 2015/09/24

Triangular SumsTime Limit: 2 Seconds      Memory Limit: 65536 KB The nth Triangular number, T(n) = 1 + ... + n, is the sum of the first n integers. It is the number of points in a triangul

2015-09-24 22:17:01 341

原创 ZOJ.2421 Recaman's Sequence【暴力打表】 2015/09/24

Recaman's SequenceTime Limit: 2 Seconds      Memory Limit: 65536 KB The Recaman's sequence is defined by a0 = 0 ; for m > 0, am = am-1 - m if the rsulting am is positive and not already in

2015-09-24 22:09:34 331

原创 ZOJ.2405 Specialized Four-Digit Numbers【水,暴力】 2015/09/24

Specialized Four-Digit NumbersTime Limit: 2 Seconds      Memory Limit: 65536 KB Find and list all four-digit numbers in decimal notation that have the property that the sum of its four dig

2015-09-24 17:52:54 277

原创 ZOJ.2481 Unique Ascending Array【子集】 2015/09/24

Unique Ascending ArrayTime Limit: 2 Seconds      Memory Limit: 65536 KB Given an array of integers A[N], you are asked to decide the shortest array of integers B[M], such that the followin

2015-09-24 17:46:55 373

原创 Poj.2546 Circular Area【两圆相交面积】 2015/09/23

Circular AreaTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5475 Accepted: 2170DescriptionYour task is to write a program, which, given two circles, ca

2015-09-23 22:29:57 365

原创 ZOJ.1597 Circular Area【两圆相交面积】 2015/09/23

Circular AreaTime Limit: 2 Seconds      Memory Limit: 65536 KB Your task is to write a program, which, given two circles, calculates the area of their intersection with the accuracy of thr

2015-09-23 22:28:51 338

原创 ZOJ.3437 Very Hard Problem【strtoll函数】 2015/09/23

Very Hard ProblemTime Limit: 2 Seconds      Memory Limit: 65536 KB      Special Judge It was in the ancient world. ZOJ, the greatest treasure hunter in the world has been lost in the fores

2015-09-23 18:46:57 456

原创 Poj.2249 Binomial Showdown【组合数】 2015/09/23

Binomial ShowdownTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 18695 Accepted: 5713DescriptionIn how many ways can you choose k elements out of n elem

2015-09-23 16:43:12 263

原创 ZOJ.1938 Binomial Showdown【组合数】 2015/09/23

Binomial ShowdownTime Limit: 2 Seconds      Memory Limit: 65536 KB In how many ways can you choose k elements out of n elements, not taking order into account?Write a program to comput

2015-09-23 16:40:58 374

原创 ZOJ.2835 Magic Square【水】 2015/09/23

Magic SquareTime Limit: 2 Seconds      Memory Limit: 65536 KB In recreational mathematics, a magic square of n-degree is an arrangement of n2 numbers, distinct integers, in a square, such th

2015-09-23 10:10:45 419

原创 ZOJ.1577 GCD & LCM【水,暴力】 2015/09/22

GCD & LCMTime Limit: 2 Seconds      Memory Limit: 65536 KB Given x and y (2 <= x <= 100,000, 2 <= y <= 1,000,000), you are to count the number of p and q such that:1) p and q are posit

2015-09-22 22:38:36 451

原创 Poj.2590 Steps【“英语题”,水】 2015/09/22

StepsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7825 Accepted: 3600DescriptionOne steps through integer points of the straight line. The length of

2015-09-22 22:04:09 444

原创 ZOJ.1871 Steps【水,”英语题“】 2015/09/22

StepsTime Limit: 2 Seconds      Memory Limit: 65536 KB One steps through integer points of the straight line. The length of a step must be nonnegative and can be by one bigger than, equal to

2015-09-22 22:02:27 315

原创 ZOJ.1526 Big Number【对数】 2015/09/22

Big NumberTime Limit: 10 Seconds      Memory Limit: 32768 KB In many applications very large integers numbers are required. Some of these applications are using keys for secure transmissio

2015-09-22 20:41:26 410

原创 Poj.3100 Root of the Problem【水】 2015/09/22

Root of the ProblemTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 11964 Accepted: 6410DescriptionGiven positive integers B and N, find an integer A suc

2015-09-22 17:37:14 359

空空如也

空空如也

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

TA关注的人

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