摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1013反思:思路很简单,但是注意各位数加起来等于10的情况以及输入0的时候结束程序该怎么去表达#include#includechar a[1000000];int main(){ int i; in... 阅读全文
posted @ 2014-11-14 07:35 sequenceaa 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1040解题思路:数据不大,可以直接用冒泡排序#includeint main(){ int ncase,n; int i,j; int a[1000]; int t; while(scanf("%d",&... 阅读全文
posted @ 2014-11-14 06:53 sequenceaa 阅读(203) 评论(0) 推荐(0) 编辑