- 博客(97)
- 收藏
- 关注
原创 hdu 1003(未完成)
思路:从第一个数字开始求和,得到求和的数列后求出和的最小值 和和的最大值位置,分两种情况:当和最小值大于0时,说明开始位置是从第一次数字开始的;当和最小值小于0事,说明开始位置在此位置的后一位;注意在第一个位置的判断;WA,还没想明白;#include #include #define N 100005#define MAX_N 1005#define MIN_
2017-11-17 22:35:46
430
原创 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
503
原创 免费馅饼
免费馅饼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
639
原创 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
638
原创 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
853
原创 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
368
原创 数字反演
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
632
原创 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
393
原创 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
507
原创 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
489
原创 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
8436
原创 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
499
原创 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
422
原创 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
522
原创 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
475
原创 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
511
原创 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
837
原创 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
223
原创 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
414
原创 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
391
原创 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
420
原创 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
454
原创 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
1172
原创 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
449
原创 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
502
原创 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
435
原创 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
390
原创 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
403
转载 杭电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
479
原创 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
544
原创 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
582
原创 简单计算器 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
424
原创 破译密码
破译密码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
745
原创 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
636
原创 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
629
原创 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
464
原创 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
682
原创 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
738
原创 1014 装箱问题 WIKI
背包问题链接:点击打开链接1014 装箱问题 2001年NOIP全国联赛普及组 时间限制: 1 s空间限制: 128000 KB题目等级 : 黄金 Gold 查看运行结果 回到问题
2015-04-15 21:37:05
547
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人