摘要: DescriptionIn this problem your goal is to sort an array consisting ofnintegers in at mostnswaps. For the given array find the sequence of swaps that ... 阅读全文
posted @ 2014-12-03 16:08 dongq 阅读(233) 评论(0) 推荐(0) 编辑
摘要: DescriptionThe School №0 of the capital of Berland hasnchildren studying in it. All the children in this school are gifted: some of them are good at p... 阅读全文
posted @ 2014-11-30 23:54 dongq 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 1 3x是错误的,应该为3*x; “=”为赋值符号,“==”才是等于符号; 浮点数不要用等号。 2 循环中注意对数据进行重新赋值; 3 不要随便使用字符串的函数<string.h>,很浪费时间。 4 定义数组要大一点,否则会出现一些错误。 5 在一些问题中如果有除法一定要注意除数不能为0! 6 在用 阅读全文
posted @ 2014-11-30 23:50 dongq 阅读(144) 评论(0) 推荐(0) 编辑
摘要: DescriptionGiga Tower is the tallest and deepest building in Cyberland. There are17 777 777 777floors, numbered from - 8 888 888 888to8 888 888 888. I... 阅读全文
posted @ 2014-11-29 17:06 dongq 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 进入acm的第一次比赛感觉被虐的很惨啊;原因肯定是自己努力不够了,还要再加把劲啊。第一个原因肯定是自己的c语言学的不够扎实,其次便是英语水平有限,再就是思路不够清晰。还要在这三个方面努力。加油加油!!努力努力!! 阅读全文
posted @ 2014-11-29 17:04 dongq 阅读(155) 评论(1) 推荐(0) 编辑
摘要: 举两个简单的例子题目描述克林在打一行字母时总是会打多一个字符,比如想打”july”时会打成”juuly”,这样他需要删掉其中一个’u’。克林想知道他可以删掉哪个位置的字符就可以变成他真正想打的一行字母。输入第一行一个整数:T(测试个数)每个测试输入两行,两个字符串(全是小写字母)串长为1到10000... 阅读全文
posted @ 2014-11-28 09:20 dongq 阅读(378) 评论(1) 推荐(0) 编辑