自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Little_Limbo的专栏

不要把这个世界让给你看不起的人

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

原创 hdu 1003(未完成)

思路:从第一个数字开始求和,得到求和的数列后求出和的最小值 和和的最大值位置,分两种情况:当和最小值大于0时,说明开始位置是从第一次数字开始的;当和最小值小于0事,说明开始位置在此位置的后一位;注意在第一个位置的判断;WA,还没想明白;#include #include #define N 100005#define MAX_N 1005#define MIN_

2017-11-17 22:35:46 402

原创 Piggy-Bank—hdu1114完全背包

Piggy-BankTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19651    Accepted Submission(s): 9975Problem DescriptionBefore ACM can

2016-05-27 21:29:51 470

原创 免费馅饼

免费馅饼Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 38633    Accepted Submission(s): 13238Problem Description都说天上不会掉馅饼,但有一天gameb

2016-05-08 20:05:48 598

原创 Prime Ring Problem——HDU1016

Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 40419    Accepted Submission(s): 17843Problem DescriptionA rin

2016-05-08 19:55:30 617

原创 Defuse the Bomb——ZOJ3938模拟

Defuse the BombTime Limit: 2 Seconds      Memory Limit: 65536 KBThe bomb is about to explode! Please defuse it as soon as possible!There is a display showing a number from 1 to 4 on the bomb

2016-05-08 19:45:15 821

原创 poj 3253 Fence Repair

Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 36991 Accepted: 11970DescriptionFarmer John wants to repair a small length of the fence arou

2016-03-27 21:22:38 342

原创 数字反演

DescriptionWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patrick's personal stuff and found a sequence a1,?a2,?...,?am o

2016-03-27 11:03:00 592

原创 N皇后问题

题目就不多说了,昨天要交个作业,今天把想到的都记录一下;递归回溯算法一:#include#include#define N 100using namespace std;int board[N];int n,ans = 0;void Trial(int i,int n);bool Judge(int i,int j) { if(j > n || i > n)retur

2016-03-27 10:44:50 376

原创 BestCoder Round #77 (div.2)xiaoxin juju needs help

xiaoxin juju needs help  Accepts: 150  Submissions: 966 Time Limit: 2000/1000 MS (Java/Others)  Memory Limit: 65536/65536 K (Java/Others)问题描述xiaoxin巨从小就喜欢字符串,六年级的时候

2016-03-26 21:49:48 482

原创 BestCoder Round #77 (div.2) 1001 so easy

so easy  Accepts: 518  Submissions: 1601 Time Limit: 2000/1000 MS (Java/Others)  Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionGiven an array with

2016-03-26 21:02:21 462

原创 sql语法回顾:“fetch: 提取类型 last 不能与只进游标一起使用。”

declare @qk char(4)declare cqk cursor forselect qkb.qkh from qkb,tgb where (qkm = '计算机学报' and qkb.qkh = tgb.qkh and sgjg = '未通过')open cqkfetch last from cqk into @qkupdate tgb set sgjg = '通过

2016-03-11 15:10:08 8331

原创 HDU __5437 Alisha’s Party

Alisha’s PartyTime Limit: 3000/2000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 2513    Accepted Submission(s): 681Problem DescriptionPrincess Alish

2015-09-16 21:38:47 471

原创 POJ——3468A Simple Problem with Integers(区间更新)

A Simple Problem with IntegersTime Limit: 5000MS Memory Limit: 131072KTotal Submissions: 78332 Accepted: 24139Case Time Limit: 2000MSDescriptionYou have N i

2015-08-20 14:04:58 397

原创 HDU1556——Color the ball(区间更新OR树状数组)

Color the ballTime Limit: 9000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12999    Accepted Submission(s): 6503Problem DescriptionN个气球排成一排,从左到右依

2015-08-18 14:40:34 459

原创 HDU-1698 Just a Hook(区间更新)

Just a HookTime Limit: 4000/2000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 22759    Accepted Submission(s): 11383Problem DescriptionIn the game of D

2015-08-13 16:50:03 461

原创 HDU——2521反素数

反素数Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4899    Accepted Submission(s): 2882Problem Description反素数就是满足对于任意i(0 Inp

2015-08-06 20:23:06 489

原创 HDU-- 2015 Multi-University Training Contest 6 Cake

CakeTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0    Accepted Submission(s): 0Special JudgeProblem DescriptionThere are m so

2015-08-06 19:24:27 803 2

原创 POJ---2828 Buy Tickets

Buy TicketsTime Limit: 4000MS Memory Limit: 65536KTotal Submissions: 15846 Accepted: 7893DescriptionRailway tickets were difficult to buy around the Lunar New Yea

2015-08-06 18:59:10 197

原创 HDU--2795 Billboard

BillboardTime Limit: 20000/8000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14772    Accepted Submission(s): 6311Problem DescriptionAt the entrance to

2015-08-04 14:04:12 383

原创 HDU--1394 Minimum Inversion Number

Minimum Inversion NumberTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14138    Accepted Submission(s): 8625Problem DescriptionThe

2015-08-04 11:18:38 373

原创 HDU-1754 I Hate It

I Hate ItTime Limit: 9000/3000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 49673    Accepted Submission(s): 19514Problem Description很多学校流行一种比较的习惯。老师们很

2015-08-03 15:17:58 393

原创 HDU 1166敌兵布阵

敌兵布阵Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 57760    Accepted Submission(s): 24405Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以

2015-08-02 21:06:17 436

原创 HDU--5327 Olympiad

OlympiadTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 347    Accepted Submission(s): 257Problem DescriptionYou are one of the comp

2015-07-31 13:15:31 1141

原创 STL List 整理

/**List容器*//*2015.05.27 18:03 第一次整理*//*2015.05.29 21:56 第二次整理完毕*//*list容器就是一个双向链表,可以高效地进行插入删除元素。适合需要频繁插入和删除数据的场合,这个和vector刚好相反*//*list不支持随机访问*//*插入操作和删除操作都不会造成原有的list迭代器失效*/#include #incl

2015-05-30 07:21:32 428

原创 STL Vector整理

/**vector容器*//*2015.05.25 23:06 第一次整理*/#include <iostream>#include <cstdio>#include <vector>#include <cstring>using namespace std;typedef struct Student{ int ID...

2015-05-27 06:57:09 475

原创 STL set 整理

/*STL set集合*//*2015.05.24 11:29第一次整理*//* map和set的插入删除效率比用其他序列容器高——指针的变换*//*每次insert之后,以前保存的iterator不会失效——内存地址不变*//**//**/#include #include #include #include using namespace std;typedef s

2015-05-25 17:19:11 411

原创 Let the Balloon Rise HDU 1004

Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 86715    Accepted Submission(s): 32736Problem DescriptionContest

2015-05-23 10:23:49 372

原创 STL MAP 整理

根据网上资料初步整理 /*容器map*////2015/05/22 20:16第一次整理#include #include #include #include using namespace std;typedef struct StudentInfo{ int ID; string strName; /*重载小于号*/ bool ope

2015-05-22 20:41:54 377

原创 第一次省赛

省赛已经过去十几天了,因为种种原因,总结一直拖到现在,要是再不写估计这就不会写了。     先回顾一下题目吧。

2015-05-21 16:43:49 449

转载 杭电OJ题目分类

模拟题, 枚举1002 1004 1013 1015 1017 1020 1022 1029 1031 1033 1034 1035 1036 1037 1039 1042 1047 1048 1049 1050 1057 1062 1063 1064 1070 1073 1075 1082 1083 1084 1088 1106 1107 1113 1117 1119 1128 1129 1

2015-05-07 16:42:06 447

原创 Special equations

Special equationsTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 379    Accepted Submission(s): 232Special JudgeProblem Description 

2015-05-03 12:23:38 527

原创 Yet another end of the world

Yet another end of the world Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 696    Accepted Submission(s): 325Problem Description

2015-05-03 11:09:33 550

原创 简单计算器 HDU 1237

简单计算器 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14384 Accepted Submission(s): 4861Problem Description读入一个只包含 +, -, *, / 的非负整数计算表达式,计算

2015-04-30 21:42:50 403

原创 破译密码

破译密码Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4141    Accepted Submission(s): 1952Problem Description有个叫“猪头帮”的国家,采用一种简单的文法

2015-04-26 18:37:39 708

原创 Vertical Histogram HDU 2708 代码详解

Vertical HistogramTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2472    Accepted Submission(s): 536Problem DescriptionWrite a

2015-04-25 09:31:03 600

原创 Hexadecimal View HDU 4054 简短代码 详解

Hexadecimal ViewTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1837    Accepted Submission(s): 753Problem DescriptionHexadecima

2015-04-25 08:55:20 604

原创 Full Binary Tree 2014 SD第五届ACM大学生程序设计竞赛 F

Full Binary TreeTime Limit: 2000MS Memory limit: 65536K 题目描述In computer science, a binary tree is a tree data structure in which each node has at most two children. Consider an infin

2015-04-19 15:23:43 445

原创 angry_birds_again_and_again SD5THACM

angry_birds_again_and_againTime Limit: 2000MS Memory limit: 65536K 题目描述The problems called "Angry Birds" and "Angry Birds Again and Again" has been solved by many teams in the series

2015-04-19 14:01:53 654

原创 Jump and Jump... HDU 5162

Jump and Jump...Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 664    Accepted Submission(s): 370Problem DescriptionThere are n

2015-04-16 22:30:42 706

原创 1014 装箱问题 WIKI

背包问题链接:点击打开链接1014 装箱问题 2001年NOIP全国联赛普及组 时间限制: 1 s空间限制: 128000 KB题目等级 : 黄金 Gold               查看运行结果 回到问题                               

2015-04-15 21:37:05 503

空空如也

空空如也

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

TA关注的人

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