- 博客(71)
- 收藏
- 关注
原创 南阳oj 第15题 括号匹配(二)
括号匹配(二)时间限制:1000 ms | 内存限制:65535 KB难度:6描述给你一个字符串,里面只包含"(",")","[","]"四种符号,请问你需要至少添加多少个括号才能使这些括号匹配起来。如:[]是匹配的([])[]是匹配的((]是不匹配的([)]是不匹配的输入第一行输入一个正整数N,表示测试数据组数(N每组测试数
2014-12-20 20:24:25 824 1
原创 南阳 37
最长公共子序列时间限制:3000 ms | 内存限制:65535 KB难度:3描述咱们就不拐弯抹角了,如题,需要你做的就是写一个程序,得出最长公共子序列。tip:最长公共子序列也称作最长公共子串(不要求连续),英文缩写为LCS(Longest Common Subsequence)。其定义是,一个序列 S ,如果分别是两个或多个已知序列的子序列,且是所有符合
2014-10-16 09:36:51 893
原创 南阳oj 36 最长公共子序列
CODE:#include#include#includeusing namespace std;int map[1100][1100];int la,lb;char a[1050],b[1050];void f(){ memset(map,0,sizeof(map)); for(int i=0;i<la;i++) for(int j=0;j<lb;j++) if(
2014-10-16 09:29:56 501
原创 NYOJ 84 阶乘的0
问题分析显然,对于阶乘这个大数,我们不可能将其结果计算出来,再统计其末尾所含有的“0”的个数。所以必须从其数字特征进行分析。下面我们从因式分解的角度切入分析。我们先考虑一般的情形。对于任意一个正整数,若对其进行因式分解,那么其末尾的“0”必可以分解为2*5。在这里,每一个“0”必然和一个因子“5”相对应。但请注意,一个数的因式分解中因子“5”不一定对应着一个“0”,因为还需要一个因子“
2014-10-13 22:42:44 403
原创 杭电1228 A+B(英文版)
A + BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12153 Accepted Submission(s): 7103Problem Description读入两个小于100的正整数A和B,计算
2014-10-13 14:20:29 474
原创 杭电1042 N!
N! Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
2014-10-11 18:59:44 522
原创 杭电2072 单词数
单词数 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 29519 Accepted Submissi
2014-10-11 15:03:35 951
原创 hdoj 1720 A+B Coming (超水题!!)
A+B ComingTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5617 Accepted Submission(s): 3682Problem DescriptionMany classmates
2014-08-25 17:39:03 446
原创 hdoj 1003 Max Sum
Max Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 145802 Acce
2014-08-25 11:51:57 341
原创 zoj 1312 Prime Cuts 水过~
Prime CutsTime Limit: 2 Seconds Memory Limit: 65536 KB A prime number is a counting number (1, 2, 3, ...) that is evenly divisible only by 1 and itself. In this problem you are to write
2014-08-23 22:40:29 408
原创 hdoj 2083 简易版之最短距离 水过~
简易版之最短距离 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
2014-08-21 19:08:57 637
原创 poj 3646 The Dragon of Loowater!水!!
The Dragon of LoowaterTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3023 Accepted: 1545DescriptionOnce upon a time, in the Kingdom of Loowater, a mino
2014-08-21 17:03:07 484
原创 hdoj 2099 整除的尾数 水过。。
整除的尾数 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 23
2014-08-20 21:19:09 531
原创 hdoj 2093 考试排名 ( 结构体处女作。。花了好长时间的说!)
考试排名 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 9029 Accep
2014-08-20 20:55:50 528
原创 hdoj 1286 找新朋友
找新朋友 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7591 Accepted S
2014-08-19 19:21:44 463
原创 hdoj 2031 进制转换
进制转换 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24667 Accepted Submission(s): 13803Problem Description
2014-08-19 17:19:16 515
原创 hdoj 1022 Train Problem I(用栈解决法)
Train Problem ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 20743 Accepted Submission(s): 7806Problem DescriptionAs the new te
2014-08-18 19:07:22 427
原创 hdoj 1229 还是A+B 水过~
还是A+B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 15961 Accepted Submission(
2014-08-18 17:18:00 378
原创 hdoj 1005 Number Sequence (找规律,打表)
Number Sequence Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 104109 Accepted Submission(s): 25211Prob
2014-08-18 16:07:00 546
原创 hdoj 2089 不要62! (打表法)
不要62Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19303 Accepted Submission(s): 6554Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoe
2014-08-18 15:46:15 514
原创 hdoj 3787 A+B 水过~
A+BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2805 Accepted Submission(s): 1592Problem Description给定两个整数A和B,其表示形式是:从个位开始,每三位
2014-08-15 21:45:19 410
转载 河南理工的ACMer要开始组队了
河南理工的ACMer要开始组队了 Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other) Total Submission(s) :
2014-08-15 21:10:03 756
原创 hdoj 2734 Quicksum 水过~
Quicksum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s):
2014-08-15 15:47:06 595
原创 hdoj 2791 The Seven Percent Solution 水过~
The Seven Percent Solution Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Tot
2014-08-15 11:22:34 539
原创 hdoj 1597 find the nth digit 大水题!!
find the nth digit Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 84
2014-08-15 10:07:22 694
原创 括号配对(栈的应用!)
#include#includeint main(){ char a[100],b[100]; int top; while(~scanf("%s",a)) { top=1; int i,le; le=strlen(a); b[top++]=a[0]; for(i=1;i<le;i++) if(a[i]=='(
2014-08-15 09:19:36 413
原创 hdoj 1877 又一版 A+B 水过~
又一版 A+B Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 130
2014-08-14 16:23:29 401
原创 hdoj 1064 Financial Management 水过~
Financial ManagementTime Limit: 400/200 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9015 Accepted Submission(s): 5640Problem DescriptionLarry gradu
2014-08-14 11:02:39 475
原创 hdoj 3279 Nth Largest Value 水过~
Nth Largest Value Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s)
2014-08-14 10:29:51 574
原创 hdoj 2134 Cuts the cake
Cuts the cake Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s):
2014-08-14 09:55:59 490
原创 hdoj 1412 {A} + {B}
{A} + {B}Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11808 Accepted Submission(s): 4931Problem Description给你两个集合,要求{A} + {B}
2014-08-13 21:17:32 424
原创 hdoj 2206 IP的计算 ~(>_<)~不是一般的水题!!!
IP的计算 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 77
2014-08-13 19:10:55 501
原创 hdoj 2520 我是菜鸟,我怕谁 水过~
我是菜鸟,我怕谁 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6280 Accepted Su
2014-08-13 11:50:32 451
原创 hdoj 2521 反素数(水!和素数没半毛钱关系)
反素数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4226 Accepted Submission(s): 2447Problem Description
2014-08-13 10:55:38 508
原创 hdoj 2564 词组缩写 水题,水过~
词组缩写 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8963 Accepted Submission(s): 2859Prob
2014-08-12 22:59:48 903
原创 hdoj 2562 奇偶位互换 水题,水过~
奇偶位互换 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 45
2014-08-12 20:48:39 645
原创 hdoj 2566 统计硬币
统计硬币 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3
2014-08-12 19:59:19 696
原创 hdoj 2081 手机短号
手机短号Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16729 Accepted Submission(s): 10539Problem Description大家都知道,手机号是一个11位长的数字串,同时
2014-08-12 15:18:02 699
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人