- 博客(5)
- 收藏
- 关注
原创 Periodic Strings
Description Periodic Strings A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example
2014-12-21 11:04:55 336
原创 Digit Counting
Description Trung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N(1 N < 10000) . After that, he co
2014-12-21 10:51:51 286
原创 Score
Description There is an objective test result such as ``OOXXOXXOOO". An `O' means a correct answer of a problem and an `X' means a wrong answer. The score of each problem of this test is calculat
2014-12-21 10:38:05 722
原创 翻转吧!字符串
题目描述 最近老师给von出了一道编程题目,题意描述如下:给定一个字符串例如“I am a student”输出如下格式:“student a am I”,咱们都知道von有时脑子短路,这下把他难坏了。他只好请他最好的朋友你来帮忙了。 输入 第一行一个整数T,表示几组数据,接下来有T行字符串(仅包含大写字母(A-Z)小写字母(a-z)和空格)(提示:字符串最后结尾保证不会有多余空
2014-12-12 18:41:27 259
原创 顺序建立链表
题目描述 输入N个整数,按照输入的顺序建立单链表存储,并遍历所建立的单链表,输出这些数据。 输入 第一行输入整数的个数N; 第二行依次输入每个整数。 输出 输出这组整数。 示例输入 # include #include struct node { int data; //数据域
2014-12-12 13:43:22 444
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人