
字符串
文章平均质量分 77
非常可乐(이녕)
贵在自知,贵在坚持
展开
-
hd1047
Integer InquiryTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He exten原创 2015-07-24 21:04:58 · 385 阅读 · 0 评论 -
hdu 1513 Palindrome
PalindromeTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3919 Accepted Submission(s): 1341Problem DescriptionA palindrome is a s原创 2015-08-10 17:52:18 · 378 阅读 · 0 评论 -
hdu1503 Advanced Fruits
Advanced FruitsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2017 Accepted Submission(s): 1029Special JudgeProblem DescriptionT原创 2015-08-10 20:29:36 · 491 阅读 · 0 评论 -
UVA 1368 - DNA Consensus String
1368 - DNA Consensus StringTime limit: 3.000 secondsDNA (Deoxyribonucleic Acid) is the molecule which contains the genetic instructions. It consists of four different nucleotides, namely A原创 2016-01-17 10:35:21 · 315 阅读 · 0 评论 -
UVA 10340 - All in All
10340 - All in AllTime limit: 3.000 secondsYou have devised a new encryption technique which encodes a message by inserting between its charactersrandomly generated strings in a clever way. Be原创 2016-01-17 10:45:50 · 360 阅读 · 0 评论 -
UVA 202 - Repeating Decimals【循环小数循环节】
202 - Repeating DecimalsTime limit: 3.000 secondsThe decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03repeats indefinitely with no intervening原创 2016-01-17 11:03:27 · 750 阅读 · 0 评论 -
UVA 1587 - Box
1587 - BoxTime limit: 3.000 secondsIvan works at a factory that produces heavy machinery. He has a simple job — he knocks up woodenboxes of different sizes to pack machinery for delivery to th原创 2016-01-17 11:12:52 · 388 阅读 · 0 评论 -
UVA 11809 - Floating-Point Numbers【浮点数】
11809 - Floating-Point NumbersTime limit: 1.000 seconds题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2909Floating-point nu原创 2016-01-17 12:06:49 · 1437 阅读 · 0 评论 -
UVA 227 - Puzzle
#include #include#includeusing namespace std;char mazz[6][6];int x,y;int judge(int x,int y){ if(x=5||y=5) return 0; return 1;}int change(int sx,int sy){ if(judge(x+sx,y+s原创 2016-01-17 10:19:26 · 401 阅读 · 0 评论 -
UVA 1588 - Kickdown
1588 - KickdownTime limit: 3.000 seconds题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=448&page=show_problem&problem=4463A research laboratory of a world原创 2016-01-17 11:26:06 · 476 阅读 · 0 评论 -
UVA 1339 Ancient Cipher【水。。。】
1339 - Ancient CipherTime limit: 3.000 secondsAncient Roman empire had a strong government system with various departments, including a secretservice department. Important documents were sen原创 2016-01-22 23:23:10 · 366 阅读 · 0 评论 -
hpuoj 1697 找句子
问题 I: CZY找句子时间限制: 1 Sec 内存限制: 128 MB提交: 99 解决: 45[提交][状态][讨论版]题目描述YY喜欢读书,而且总是喜欢从书上摘取好的句子或词语,但是抄完之后她变忘了在哪,于是她就请CZY帮她,CZY感觉这我多我可咋找啊!于是又来麻烦聪明的你,为了方便CZY早已用高端译码机器把句子变成的数字,他想让你告诉他句子在文章中出现的位置原创 2015-08-08 17:39:26 · 428 阅读 · 0 评论 -
UVa 489 Hangman Judge
Hangman JudgeIn ``Hangman Judge,'' you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are the same as原创 2016-01-25 03:34:40 · 352 阅读 · 0 评论 -
hdoj 5592 ZYB's Biology 【线段树】 hdoj 5590 ZYB's Biology 【字符串水题】
ZYB's BiologyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 340 Accepted Submission(s): 281Problem DescriptionAfter getting 60原创 2015-12-08 00:24:03 · 406 阅读 · 0 评论 -
CodeForces 611D New Year and Ancient Prophecy
D. New Year and Ancient Prophecytime limit per test2.5 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputLimak is a little polar原创 2016-01-10 21:05:13 · 678 阅读 · 0 评论 -
Codeforces 527B. Error Correct System【字符串】
B. Error Correct Systemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFord Prefect got a job as a web dev原创 2016-04-21 20:14:59 · 356 阅读 · 0 评论 -
hdu 2203 亲和串
亲和串Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9701 Accepted Submission(s): 4432Problem Description人随着岁数的增长是越大越聪明还是越大越笨,这是一个值原创 2015-08-10 16:51:13 · 374 阅读 · 0 评论 -
hdu4813 Hard Code
Hard CodeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 999 Accepted Submission(s): 708Problem DescriptionSome strange code is s原创 2015-08-10 11:33:32 · 514 阅读 · 0 评论 -
jobdu1192
题目描述: 给出一个长度不超过1000的字符串,判断它是不是回文(顺读,逆读均相同)的。输入: 输入包括一行字符串,其长度不超过1000。输出: 可能有多组测试数据,对于每组数据,如果是回文字符串则输出"Yes!”,否则输出"No!"。样例输入: hellollehhelloworld样例输出: Yes!No!水。。。#inc原创 2015-07-21 12:00:09 · 384 阅读 · 0 评论 -
nyoj36
如题,需要你做的就是写一个程序,得出最长公共子序列。tip:最长公共子序列也称作最长公共子串(不要求连续),英文缩写为LCS(Longest Common Subsequence)。其定义是,一个序列 S ,如果分别是两个或多个已知序列的子序列,且是所有符合此条件序列中最长的,则 S 称为已知序列的最长公共子序列。nyoj36#include#includechar a[101原创 2015-06-07 16:52:07 · 412 阅读 · 0 评论 -
poj1936
DescriptionYou have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Because of pending patent issues we wil原创 2015-07-22 14:54:12 · 420 阅读 · 0 评论 -
hd3788
ZOJ问题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description对给定的字符串(只包含'z','o','j'三种字符),判断他是否能AC。是否AC的规则如下:1. zoj能AC;2. 若字符串形式为xzojx,则也能A原创 2015-07-26 09:01:10 · 419 阅读 · 0 评论 -
poj1007
DNA SortingTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 89161 Accepted: 35831DescriptionOne measure of ``unsortedness'' in a sequence is the number o原创 2015-07-25 19:02:44 · 315 阅读 · 0 评论 -
hd2137
circumgyrate the stringTime Limit: 10000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description Give you a string, just circumgyrate. The number N means you jus原创 2015-07-22 20:47:37 · 1351 阅读 · 0 评论 -
hd1106
Problem Description输入一行数字,如果我们把这行数字中的‘5’都看成空格,那么就得到一行用空格分割的若干非负整数(可能有些整数以‘0’开头,这些头部的‘0’应该被忽略掉,除非这个整数就是由若干个‘0’组成的,这时这个整数就是0)。你的任务是:对这些分割得到的整数,依从小到大的顺序排序输出。 Input输入包含多组测试用例,每组输入数据只有一行数字(原创 2015-07-22 14:40:29 · 390 阅读 · 0 评论 -
hd1238
Problem DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the原创 2015-07-21 08:07:14 · 583 阅读 · 0 评论 -
hd1501
Problem DescriptionGiven three strings, you are to determine whether the third string can be formed by combining the characters in the first two strings. The first two strings can be mixed arbitrari原创 2015-07-20 20:24:07 · 503 阅读 · 0 评论 -
hd2816 I Love You Too
I Love You TooTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1768 Accepted Submission(s): 1061Problem DescriptionThis is a true原创 2015-07-27 16:35:48 · 591 阅读 · 0 评论 -
hd2074 叠筐
叠筐Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14566 Accepted Submission(s): 3787Problem Description需要的时候,就把一个个大小差一圈的筐叠上去,使得从上往下原创 2015-07-27 11:19:53 · 508 阅读 · 0 评论 -
poj 2406 Power Strings
Power StringsTime Limit: 3000MS Memory Limit: 65536KTotal Submissions: 37421 Accepted: 15462DescriptionGiven two strings a and b we define a*b to be their concatena原创 2015-08-07 15:20:14 · 325 阅读 · 0 评论 -
poj 2752 Seek the Name, Seek the Fame
Seek the Name, Seek the FameTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14092 Accepted: 7009DescriptionThe little cat is so famous, that many couples原创 2015-08-07 16:02:55 · 377 阅读 · 0 评论 -
hdoj 1686 Oulipo
OulipoTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7297 Accepted Submission(s): 2922Problem DescriptionThe French author Georg原创 2015-08-07 15:29:49 · 592 阅读 · 0 评论 -
poj1458 Common Subsequence【逆序打印】
Common SubsequenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 43159 Accepted: 17490DescriptionA subsequence of a given sequence is the given sequence原创 2015-08-10 10:43:56 · 382 阅读 · 0 评论 -
PAT(甲级)1005. Spell It Right (20)
Spell It Right (20) Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contai原创 2018-01-18 11:10:32 · 189 阅读 · 0 评论