- 博客(14)
- 收藏
- 关注
原创 HPU 1010: QAQ的序列价值 【状态压缩】
1010: QAQ的序列价值时间限制: 3 Sec 内存限制: 128 MB提交: 60 解决: 13[提交][状态][讨论版]题目描述QAQ有一个序列,元素个数有NN个。他认为一个序列的价值的是:该序列中不同元素之和。比如说:序列(1,1,2,2)(1,1,2,2)价值为33。现在QAQ想知道所有子序列的价值之和。输入第
2016-10-30 14:24:55 498
原创 HPU 1006: 机房的位置(二)【规律】
1006: 机房的位置(二)时间限制: 1 Sec 内存限制: 128 MB提交: 33 解决: 9[提交][状态][讨论版]题目描述机房里面有一排大佬专座,这一排共有NN个位置,已知任意两个大佬之间必须空有至少一个位置。问最少需要多少个大佬可以完全占用这NN个位置使得不会有任何人入座。输入第一行输入一个整数TT,代表有TT组测试数据。每
2016-10-29 23:53:17 674
原创 HDU 4506 小明系列故事——师兄帮帮忙【map】
小明系列故事——师兄帮帮忙Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 5565 Accepted Submission(s): 1512Problem Description 小明自从告别
2016-10-29 00:23:50 505
原创 HDU 4323 Triangle LOVE【拓扑排序】
Triangle LOVETime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4620 Accepted Submission(s): 1816Problem DescriptionRecently
2016-10-28 15:26:41 274
原创 数据结构-实验四 二叉树
数据结构- 二叉树递归:#include#include#include#include#include#include using namespace std;typedef struct BiTNode{ char date; struct BiTNode *lchild,*rchild;}BiTNode,*BiTree;void Pre_CreateBiTre
2016-10-27 12:55:21 836
原创 Codeforces 730G. Car Repair Shop 【map】
G. Car Repair Shoptime limit per test2 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputPolycarp starts his own business. Tomorr
2016-10-23 23:05:38 811
原创 CodeForces - 337 C. Quiz【贪心】
C. Quiztime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputManao is taking part in a quiz. The quiz consists of
2016-10-22 22:15:16 411
原创 POJ 1579 Function Run Fun【递归转循环】
Function Run FunTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 18342 Accepted: 9376DescriptionWe all love recursion! Don't we? Consider a three-p
2016-10-22 20:50:21 381
原创 CodeForces - 257C View Angle 【极角排序】
C. View Angletime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFlatland has recently introduced a new type o
2016-10-21 22:27:36 371
原创 CodeForces - 237C Primes on Interval 【二分】
C. Primes on Intervaltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou've decided to carry out a survey i
2016-10-21 19:54:19 285
原创 Uva 1587 Box
AC代码:#include#includeusing namespace std;struct Node{ int a,b;}stu[33];bool cmp(Node a,Node b){ if(a.a!=b.a) return a.a<b.a; return a.b<b.b; }int main(){ while(~scanf("%d%d",&stu[1]
2016-10-20 12:55:21 316
原创 Uva 455 Periodic Strings
A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, the string ”abcabcabcabc” has period 3, since it i
2016-10-18 23:27:24 356
原创 UVA 1586 Molar mass
Molar massTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluDescriptionHello everyone ,welcome to our programming match. This is your first task!!An organic compound is any membe
2016-10-18 17:57:33 280
原创 UVA 1584 Circular Sequence【串的最小循环表示】
Circular SequenceTime Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %lluSubmitDescription Some DNA sequences exist in circular forms as in the following figure, which shows a circular
2016-10-18 16:55:36 332
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人