摘要: 题目链接:https://vjudge.net/problem/UVA-1584 题解:用strcpy与strcmp定长比较字符串即可,strcat与strcmp对string不适用,所以只能改写为char字符串 ac代码: #include<iostream>#include<string>#in 阅读全文
posted @ 2020-04-08 16:16 Joelin12 阅读(194) 评论(0) 推荐(0)
摘要: 题目链接:https://vjudge.net/problem/UVA-1583 题意:给出一个数N,判断最小的数x使x+(x各位数字的和)=N 题解:这是一个暴力求解题,不过有技巧,x各位数字的和最多是9*位数,所以循环从N-位数*9开始循环即可 ac代码: #include<iostream># 阅读全文
posted @ 2020-04-08 15:42 Joelin12 阅读(94) 评论(0) 推荐(0)
摘要: 题目链接:https://vjudge.net/problem/UVA-340#author=0 题意:关键句子:In this problem you will be given a secret codes1: : : snand a guessg1: : : gn, and are to de 阅读全文
posted @ 2020-04-08 15:21 Joelin12 阅读(193) 评论(0) 推荐(0)