
字符串
文章平均质量分 69
henuzxy
已经成为刷题过千的男人,即将成为cf 1900分的男人。
展开
-
河南工业“玲珑杯”小天使改名
题目地址:http://218.28.220.249:50015/JudgeOnline/problem.php?id=1268题目描述小天使的b站帐号被大家发现啦。于是小天使决定改名,将他原有ID中的两个不同位置的字母进行交换。(小天使有可能将两个不同位置的相同字母进行交换,虽然这样做他的ID并没有发生变化) Lsf知道小天使原来的ID,他想知道某个ID是否可能是小天使的新ID。输入第一行为数据原创 2017-05-01 22:25:56 · 572 阅读 · 0 评论 -
haut 1270 谍报分析 河南省第十届省赛题(set加map的综合应用)
题目描述“八一三”淞沪抗战爆发后,*几次准备去上海前线视察和指挥作战。但都因为宁沪之间的铁路和公路遭到了敌军的严密封锁,狂轰滥炸,一直未能成行。特科组织,其主要任务是保卫的安全,了解和掌握敌方的动向。经过一段时间的监听,谍报组获取了敌方若干份密报,经过分析,发现密文中频繁出现一些单词,情报人员试图从单词出现的次数中,推出敌军的行动计划。请你编程,快速统计出频率高的前十个单词。输入密文是由英语单词(小原创 2017-05-15 18:59:34 · 488 阅读 · 0 评论 -
HDU-2668(Daydream) 求最长的不重复子串
Problem Description Welcome to 2009 HDU Girl’s Cup, bless you will happy in it. Every girl are beautiful if you use you heart to feel. Every corner in the world will colourful and energetic by severa原创 2017-04-19 22:49:26 · 636 阅读 · 0 评论 -
HDU 3746 Cyclic Nacklace (求最小循环节)
CC always becomes very depressed at the end of this month, he has checked his credit card yesterday, without any surprise, there are only 99.9 yuan left. he is too distressed and thinking about how to原创 2017-08-16 10:34:20 · 260 阅读 · 0 评论 -
HDU 4763 Theme Section(kmp求前后缀)
It’s time for music! A lot of popular musicians are invited to join us in the music festival. Each of them will play one of their representative songs. To make the programs more interesting and challen原创 2017-08-16 10:42:58 · 393 阅读 · 0 评论 -
POJ 3080 Blue Jeans (分解字符串,KMP)
The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of contributors to map how the Earth was populated. As原创 2017-08-16 10:52:18 · 286 阅读 · 0 评论 -
HDU 6208 && 2017 ACM/ICPC Asia Regional Qingdao Online1003
The Dominator of StringsTime Limit: 3000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 497 Accepted Submission(s): 139Problem Description Here you have a原创 2017-09-17 19:51:43 · 417 阅读 · 0 评论 -
玲珑OJ 1171 - 这个E大概是垃圾桶捡来的(贪心)
题目链接B君在做 CODE FESTIVAL 2017 qual B 遇到了这样的一道题目 http://code-festival-2017-qualb.contest.atcoder.jp/tasks/code_festival_2017_qualb_f 于是B君决定出一个加强版输入一个字符串,将他重新排列,使得重排之后的字符串的最小表示法,最大。 最小表示法是将字符串循环移动之后,字典序原创 2017-10-30 00:00:59 · 374 阅读 · 0 评论 -
HDU 1039 Easier Done Than Said?(正则表达式)
题意很简单,就是给你一些字符串,然后你判断哪些符合。符合的标准是:1.必须要有一个元音字母。 2.不能有连续三个元音字母或者非元音字母。 3.不能有连续相同的两个字母(ee和oo除外)利用正则表达式: 代码如下:import java.util.*; import java.math.*; impo原创 2017-11-27 20:17:03 · 250 阅读 · 0 评论