字符串
Raytheon 1715313189
这个人是条懒狗,什么也没留下...
展开
-
1036 Boys vs Girls (25分)(学习?明天再说明天再说明天再说明天再说)
This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all the female students.Input Specification:Each input file contains one ...原创 2020-01-13 22:10:38 · 112 阅读 · 0 评论 -
1140 Look-and-say Sequence (我特别特别忙)
Look-and-say sequence is a sequence of integers as the following:D, D1, D111, D113, D11231, D112213111, ...whereDis in [0, 9] except 1. The (n+1)st number is a kind of description of the nth...原创 2019-10-13 17:28:29 · 89 阅读 · 0 评论 -
1132 Cut Integer(今天5401开门了吗?)
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 167334, we have A = 167 and B = 334. It is interestin...原创 2019-10-13 16:33:49 · 109 阅读 · 0 评论 -
P1781 宇宙总统(string的比较)
题目背景宇宙总统竞选题目描述地球历公元6036年,全宇宙准备竞选一个最贤能的人当总统,共有n个非凡拔尖的人竞选总统,现在票数已经统计完毕,请你算出谁能够当上总统。输入格式president.in第一行为一个整数n,代表竞选总统的人数。接下来有n行,分别为第一个候选人到第n个候选人的票数。输出格式president.out共两行,第一行是一个整数m,为当上总...原创 2019-08-18 12:21:39 · 110 阅读 · 0 评论 -
UPC1020(我太爱STL啦!!!我上辈子一定是....)
密码破译中国石油大学ACM俱乐部小武学长的字符串处理功力在ACM界无人不知无人不晓。今天,高老板从小武学长那借到了一本秘籍。高老板非常兴奋,打开书的第一章,页首写着26个字母“IUJTMFHXOKBQEAPZCDWRYNVSGL”,对应的英文字母是“ABCDEFGHIJKLMNOPQRSTUVWXYZ”,此书根据此字母表编写,需要翻译后查看。高老板为了练就小武学长的神功,请你为他写一个程序...原创 2019-09-06 21:16:03 · 252 阅读 · 0 评论 -
Babelfish
Babelfish Time Limit:3000MS Memory Limit:65536K Total Submissions:52895 Accepted:21910 Description You have just moved from Waterloo to a big cit...原创 2019-09-06 23:01:10 · 166 阅读 · 0 评论 -
1071 Speech Patterns(wtnl)
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzing such patterns can help to narrow down a speake...原创 2019-09-16 17:29:21 · 167 阅读 · 0 评论 -
1152 Google Recruitment(溜了溜了)
In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit ...原创 2019-09-16 17:52:48 · 155 阅读 · 0 评论 -
1069 The Black Hole of Numbers(副班长??????)
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by taki...原创 2019-09-20 21:04:48 · 85 阅读 · 0 评论 -
P1012 拼数(吹爆STL!!!)
题目描述设有nn个正整数(n≤20)(n≤20),将它们联接成一排,组成一个最大的多位整数。例如:n=3n=3时,33个整数1313,312312,343343联接成的最大整数为:3433121334331213又如:n=4n=4时,44个整数77,1313,44,246246联接成的最大整数为:74246137424613输入格式第一行,一个正整数nn。第二行,nn个正...原创 2019-08-11 16:06:29 · 83 阅读 · 0 评论 -
P1071 潜伏者(STL大法好!!!真善美好!!!)
题目描述RR国和SS国正陷入战火之中,双方都互派间谍,潜入对方内部,伺机行动。历尽艰险后,潜伏于SS国的RR国间谍小CC终于摸清了SS国军用密码的编码规则:1.SS国军方内部欲发送的原信息经过加密后在网络上发送,原信息的内容与加密后所得的内容均由大写字母‘AA’-‘ZZ’构成(无空格等其他字符)。2.SS国对于每个字母规定了对应的“密字”。加密的过程就是将原信息中的所有字母...原创 2019-08-20 00:06:18 · 228 阅读 · 0 评论 -
P1603 斯诺登的密码(能学到很多)
题目背景根据斯诺登事件出的一道水题题目描述题目描述2013年X月X日,俄罗斯办理了斯诺登的护照,于是他混迹于一架开往委内瑞拉的飞机。但是,这件事情太不周密了,因为FBI的间谍早已获悉他的具体位置——但这不是最重要的——最重要的是如果要去委内瑞拉,那么就要经过古巴,而经过古巴的路在美国的掌控之中。丧心病狂的奥巴马迫降斯诺登的飞机,搜查时却发现,斯诺登杳无踪迹。但是,在据说是斯诺...原创 2019-08-19 19:13:39 · 247 阅读 · 0 评论 -
(手残打字员!?)WERTYU ZOJ - 1884
A common typing error is to place the hands on the keyboard one row to the right of the correct position. So "Q" is typed as "W" and "J" is typed as "K" and so on. You are to decode a message typed i...原创 2019-04-01 11:12:18 · 169 阅读 · 0 评论 -
(艾迪茉莉转圈圈~~找最小环)Circular Sequence UVA - 1584
#include<iostream>#include<string.h>#include<stdio.h>using namespace std;char a[211],b[211];int n;int main(){ cin>>n; while(n--) { cin>>a; ...原创 2019-04-01 12:22:17 · 226 阅读 · 0 评论 -
(你瞅啥?!)POJ 1936All in All
You 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 will not discus...原创 2019-04-01 13:44:54 · 114 阅读 · 0 评论 -
(理解map映射的用法,加油鸭!!!)统计难题 HDU - 1251
Ignatius最近遇到一个难题,老师交给他很多单词(只有小写字母组成,不会有重复的单词出现),现在老师要他统计出以某个字符串为前缀的单词数量(单词本身也是自己的前缀).Input输入数据的第一部分是一张单词表,每行一个单词,单词的长度不超过10,它们代表的是老师交给Ignatius统计的单词,一个空行代表单词表的结束.第二部分是一连串的提问,每行一个提问,每个提问都是一个字符串....原创 2019-04-01 15:27:57 · 272 阅读 · 0 评论 -
真的,我不相信有人会看完这个。。。。。。。。。。。。。。。。。。。如果你真的看完了,字符串就基本入门了
题目描述写一函数,将两个字符串连接输入两行字符串输出链接后的字符串样例输入copy123abc样例输出123abc#include<iostream>#include<string>using namespace std;int main(){ string a,b; cin>>a&g...原创 2019-04-14 23:08:25 · 949 阅读 · 3 评论 -
(最最最基本的字符串题!!!)1001 A+B Format (20 分)
Calculatea+band output the sum in standard format -- that is, the digits must be separated intogroups of three by commas (unless there are less than four digits).计算出a+b的和,并以标准格式输出-也就是说,数字必须被分隔成...原创 2019-04-27 10:50:52 · 449 阅读 · 0 评论 -
(抱歉,我们有九天春假(滑稽))1005 Spell It Right (20 分)
Given a non-negative integerN, your task is to compute the sum of all the digits ofN, and output every digit of the sum in English.给定一个非负整数N,您的任务是计算N的所有数字的和,并以英语输出和的每一个数字。Input Specification:...原创 2019-04-30 18:47:16 · 98 阅读 · 0 评论 -
(这周就考四级口语啦~)1035 Password (20 分)
To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords since it is hard to distinguish1(one) froml(L...原创 2019-05-22 20:10:37 · 171 阅读 · 0 评论 -
(佛了,字符串还可以这样做?!)TEX Quotes POJ - 1488
TEX is a typesetting language developed by Donald Knuth. It takes source text together with a few typesetting instructions and produces, one hopes, a beautiful document. Beautiful documents use doubl...原创 2019-04-01 10:06:58 · 146 阅读 · 0 评论