
模拟题
文章平均质量分 72
hpuzsk
这个作者很懒,什么都没留下…
展开
-
LeetCode3. 无重复字符的最长子串
3. 无重复字符的最长子串难度中等4221收藏分享切换为英文关注反馈给定一个字符串,请你找出其中不含有重复字符的最长子串的长度。示例1:输入: "abcabcbb"输出: 3 解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。示例 2:输入: "bbbbb"输出: 1解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。示例 3:输入: "pwwkew"输出: 3解释: 因为无重复字符的最长子串是"wke",所以其长度为 ...原创 2020-08-26 14:45:41 · 251 阅读 · 0 评论 -
LeetCode632 最小区间
632. 最小区间难度困难235收藏分享切换为英文关注反馈你有k个升序排列的整数列表。找到一个最小区间,使得k个列表中的每个列表至少有一个数包含在其中。我们定义如果b-a < d-c或者在b-a == d-c时a < c,则区间 [a,b] 比 [c,d] 小。示例:输入:[[4,10,15,24,26], [0,9,12,20], [5,18,22,30]]输出:[20,24]解释: 列表 1:[4, 10, 15, 24, 26],24 在...原创 2020-08-24 16:02:53 · 230 阅读 · 0 评论 -
牛客网24点运算
题目描述计算24点是一种扑克牌益智游戏,随机抽出4张扑克牌,通过加(+),减(-),乘(*),除(/)四种运算法则计算得到整数24,本问题中,扑克牌通过如下字符或者字符串表示,其中,小写joker表示小王,大写JOKER表示大王:345678910JQKA2jokerJOKER本程序要求实现:输入4张牌,输出一个算式,算式的结果为24点。详细说明:1.运算只考虑加减乘除运算,没有阶乘等特殊运算符号,友情提醒,整数除...原创 2020-07-13 16:11:16 · 832 阅读 · 0 评论 -
杭电1210 Eddy's 洗牌问题
Eddy's 洗牌问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4131 Accepted Submission(s): 2752Problem DescriptionEddy是个ACMer,他不原创 2016-01-11 14:17:13 · 502 阅读 · 0 评论 -
杭电5625 Clarke and chemistry
Clarke and chemistryTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 541 Accepted Submission(s): 294Problem DescriptionClarke原创 2016-04-05 16:01:06 · 445 阅读 · 0 评论 -
杭电5522Numbers
NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/262144 K (Java/Others)Total Submission(s): 1123 Accepted Submission(s): 614Problem DescriptionThere are n number原创 2016-04-05 17:56:40 · 324 阅读 · 0 评论 -
codeforces 608BHamming Distance Sum
B - Hamming Distance SumTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionGenos needs your help. He was asked to solve the follow原创 2016-04-07 19:42:13 · 664 阅读 · 0 评论 -
杭电5538House Building
House BuildingTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 594 Accepted Submission(s): 381Problem DescriptionHave you ev原创 2016-04-07 20:48:16 · 376 阅读 · 0 评论 -
杭电5540 Secrete Master Plan
Secrete Master PlanTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 525 Accepted Submission(s): 299Problem DescriptionMaster M原创 2016-04-07 21:11:59 · 372 阅读 · 0 评论 -
杭电1034 Candy Sharing Game
Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4448 Accepted Submission(s): 2718Problem DescriptionA numbe原创 2015-12-08 18:46:45 · 886 阅读 · 0 评论 -
杭电1591 hdu 1591 Encoded Love-letter
Encoded Love-letterTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1621 Accepted Submission(s): 563Problem DescriptionAfter Gardon had got Angel's letter, he found it was encoded...Oh my god原创 2015-11-28 18:02:29 · 677 阅读 · 0 评论 -
杭电5500Reorder the Books
Reorder the BooksTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 907 Accepted Submission(s): 499Problem Descriptiondxy has原创 2015-11-14 17:10:51 · 299 阅读 · 0 评论 -
杭电1088&zoj1099 Write a simple HTML Browser
Write a simple HTML BrowserTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 9513 Accepted Submission(s): 2697Problem Description原创 2015-11-03 14:29:45 · 439 阅读 · 0 评论 -
杭电1228A+B
A + BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13824 Accepted Submission(s): 8178Problem Description读入两个小于100的正整数A和B,计算原创 2015-09-17 12:04:42 · 596 阅读 · 0 评论 -
I was trying to solve problem '1234 - Harmonic Number', I wrote the following code
Time Limit:3000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionI was trying to solve problem '1234 - Harmonic Number', I wrote the following code原创 2015-11-07 16:26:20 · 1177 阅读 · 0 评论 -
括号配对问题----栈模拟
括号配对问题时间限制:3000 ms | 内存限制:65535 KB难度:3描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0输出每组输入数据的输出占一行,如果该字符串中所含的括号是配对的,则输出Yes,如果不配对则输出No样例输入3[(])(])([[]()])样例输出NoNoYes原创 2015-09-20 00:20:58 · 543 阅读 · 0 评论 -
杭电3617Happy 2009
Happy 2009Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2727 Accepted Submission(s): 914Problem DescriptionNo matter you kn原创 2015-10-27 16:40:50 · 491 阅读 · 0 评论 -
杭电3068 最长回文 最长回文的manacher算法
最长回文Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12275 Accepted Submission(s): 4514Problem Description给出一个只由小写英文字符a,b,c...原创 2015-10-27 15:32:07 · 539 阅读 · 0 评论 -
杭电1062 Text Reverse
Text ReverseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 22588 Accepted Submission(s): 8675Problem DescriptionIgnatius lik原创 2015-11-13 17:26:38 · 440 阅读 · 0 评论 -
杭电1072 猜数字
猜数字Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3727 Accepted Submission(s): 2164Problem Description猜数字游戏是gameboy最喜欢的游戏之原创 2015-11-14 17:06:54 · 835 阅读 · 0 评论 -
zoj1005Jugs
JugsTime Limit: 2 Seconds Memory Limit: 65536 KB Special JudgeIn the movie "Die Hard 3", Bruce Willis and Samuel L. Jackson were confronted with the following puzzle. They were given原创 2015-09-13 11:21:18 · 644 阅读 · 0 评论