摘要: 题目:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substr... 阅读全文
posted @ 2018-04-05 20:54 xzhws 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 输入一个字符串,以回车结束(字符串长度# include# includeusing namespace std;int main(){ char input[30]; char str1[30]; char str2[30]; gets(... 阅读全文
posted @ 2018-04-05 20:15 xzhws 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 求任意两个不同进制非负整数的转换(2进制~16进制),所给整数在long所能表达的不同进制的表示符号为(0,1,...,9,a,b,...,f)或者(0,1,...,9,A,B,...,F)。 输入: 输入只有一行,包含三个整数a,n,b。a表示... 阅读全文
posted @ 2018-04-05 11:09 xzhws 阅读(76) 评论(0) 推荐(0) 编辑