摘要: include include using namespace std; int getFriendNum(int a) { int sum = 0; while (a) { int b = a % 10; a = a / 10; sum += b; } return sum; } int main 阅读全文
posted @ 2019-03-01 21:34 Chance-Zou 阅读(219) 评论(0) 推荐(0) 编辑
摘要: include include using namespace std; typedef struct { int score;//该题分数 int num;//选项个数 int right;//正确选项个数 string str="";//正确选项 }question[100]; int main 阅读全文
posted @ 2019-03-01 14:51 Chance-Zou 阅读(568) 评论(0) 推荐(0) 编辑
摘要: include include include using namespace std; define N 10002 typedef struct { string name; int height; }node,human[N]; bool compare(node x, node y) {// 阅读全文
posted @ 2019-03-01 11:12 Chance-Zou 阅读(395) 评论(0) 推荐(0) 编辑
摘要: 参考博客:https://blog.csdn.net/hy971216/article/details/80653566 阅读全文
posted @ 2019-03-01 11:05 Chance-Zou 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 需要注意的一点: 当B的长度小于A的长度时,需要的B的前面补零。 include include include using namespace std; int main() { string str1, str2; cin str1 str2; int len1 = str1.length(); 阅读全文
posted @ 2019-02-28 11:39 Chance-Zou 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 解题思路: 首先判断是否为插入排序的中间序列,如果不是则为归并排序 判断方法很简单,插入排序前面一定有一段序列是非递减的,而后面的序列是和原序列相同的 include include using namespace std; int main() { int n; cin n; int a[102] 阅读全文
posted @ 2019-02-26 20:05 Chance-Zou 阅读(1325) 评论(0) 推荐(0) 编辑
摘要: 题目:1009 说反话 (20 分) 给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。 输入格式: 测试输入包含一个测试用例,在一行内给出总长度不超过 80 的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用 1 个空格分开,输入保证句 阅读全文
posted @ 2019-01-16 22:04 Chance-Zou 阅读(1659) 评论(0) 推荐(0) 编辑
摘要: 题目:1007素数对猜想(20分) 让我们定义dn为:dn=pn+1−pn,其中pi是第i个素数。显然有d1=1,且对于n 1有dn是偶数。“素数对猜想”认为“存在无穷多对相邻且差为2的素数”。现给定任意正整数N( include using namespace std; int main() { 阅读全文
posted @ 2019-01-06 12:45 Chance-Zou 阅读(2513) 评论(0) 推荐(0) 编辑
摘要: 最近在Visual Studio官网下载Visual Studio2017时,点击 免费下载 时,跳转到下载页面后又跳转回原页面,以至于无法下载Visual Studio2017。 解决办法: 在跳转页面时会出现一个“=15”的链接,将其复制后改为“=16”,就可以跳转到下载页面了。 这里给出链接: 阅读全文
posted @ 2019-01-02 19:57 Chance-Zou 阅读(2050) 评论(0) 推荐(0) 编辑
摘要: (1)计划说明 a.本组选择对比测试产品百词斩和扇贝打卡 b.测试进度表 内容说明 预估耗时(分钟) 实际耗时(分钟) 1.计划: 60 50 估计这个任务需要多少时间 60 50 2.测试设计: 70 60 需求和测试需求分析 40 20 设计测试用例 30 40 3.搭建测试环境(安装测试工具、 阅读全文
posted @ 2018-04-23 14:23 Chance-Zou 阅读(1353) 评论(2) 推荐(0) 编辑