字符串--2.找第一个只出现一次的字符 摘要:解题思路:注意事项:遇到求字符串中类似于字符个数这种题,想到先用strlen(str),后用双循环挨个进行比较;参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年03月24日 0 点赞 0 评论 314 浏览 评分:0.0
字符串--3.基因相关性 摘要:解题思路: 得用scanf("%s",str)输入字符串,用gets(str)会结果错误,原因可能是复制输入字符的时候有空格;区别:scanf("%s",str)---遇到空格就停止; …… 题解列表 2023年03月24日 0 点赞 0 评论 395 浏览 评分:0.0
编写题解 1003: [编程入门]密码破译 摘要:#include<stdio.h> //字符数组 int main() { char ch[] = { "China" }; for (int i = 0; i < 5; i++) …… 题解列表 2023年03月24日 0 点赞 0 评论 237 浏览 评分:0.0
LikeWater - 1097: 蛇行矩阵 摘要:```cpp #include using namespace std; #define Max 101 int num[Max]={0}; void Initlize(int ro…… 题解列表 2023年03月24日 0 点赞 0 评论 328 浏览 评分:0.0
最小公倍数——辗转法 摘要:解题思路:辗转相除法注意事项:参考代码:a,b = map(int,input().split())c,d = a,bif a>b: a,b = b,ar = a%b while r !=0: …… 题解列表 2023年03月24日 0 点赞 0 评论 356 浏览 评分:0.0
编写题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); double c=(double…… 题解列表 2023年03月24日 0 点赞 0 评论 300 浏览 评分:0.0
编写题解 2764: 带余除法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b; scanf("%d %d",&a,&b); printf("%d %d",…… 题解列表 2023年03月24日 0 点赞 0 评论 333 浏览 评分:0.0
编写题解 2778: 判断数正负 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N; scanf("%d",&N); if(N>0) { prin…… 题解列表 2023年03月24日 0 点赞 0 评论 291 浏览 评分:0.0
五位、六位回文数 摘要:n=int(input()) s=[] for i in range(1,10): for j in range(0,10): for k in range(0,10)…… 题解列表 2023年03月24日 1 点赞 0 评论 216 浏览 评分:0.0
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a%2==0) { p…… 题解列表 2023年03月24日 0 点赞 0 评论 309 浏览 评分:0.0