Fork me on GitHub
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2017 题目大意:给你段字符串,求出字符串中含有数字字符的个数 解题思路: 字符串输入输出的基本应用:http://c.biancheng.net/cpp/html/3106.html https://b 阅读全文
posted @ 2018-07-27 20:07 GerJCS 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2016 题目大意:给你 n 个数,把最小的数和第一个数字互换,然后输出 解题思路: 很水,开数组,遍历并记录 min ,最后 swap 输出 代码: 阅读全文
posted @ 2018-07-27 18:35 GerJCS 阅读(178) 评论(0) 推荐(0) 编辑