[编程入门]三个字符串的排序-题解(C语言代码) 摘要:解题思路: strcmp(字符数组1,字符数组2)函数。若字符数组1>字符数组2,则函数值大于0;若字符数组1=字符数组2,则函数值等于0;若字符数组1《字符数组2,则函数值小于0;参考代码:#in…… 题解列表 2020年07月28日 0 点赞 0 评论 1177 浏览 评分:0.0
[编程入门]筛选N以内的素数-题解(C语言代码) 摘要:解题思路:要判断一个数是否为素数,即判断能否被除了1和它本身之外的数整除;先设置一个flag,利用双重循环,当不满足素数条件时,改变flag的值,并继续这个循环,若flag的值不变,说明是素数,在第二…… 题解列表 2020年07月28日 0 点赞 0 评论 527 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int SIZE; void Transform( string , in…… 题解列表 2020年07月28日 0 点赞 0 评论 691 浏览 评分:0.0
二级C语言-计算素数和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int isprime(int x){ int i; int isprime = -1;…… 题解列表 2020年07月28日 0 点赞 0 评论 441 浏览 评分:0.0
C语言考试练习题_保留字母-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char a[80],b[80]; int i…… 题解列表 2020年07月29日 0 点赞 0 评论 792 浏览 评分:0.0
[编程入门]数字的处理与判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>99999) { printf("error"); }…… 题解列表 2020年07月29日 0 点赞 0 评论 621 浏览 评分:0.0
蓝桥杯算法提高VIP-欧拉函数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int gcd(int a,int b) { return b==0?a:gcd…… 题解列表 2020年07月29日 0 点赞 0 评论 824 浏览 评分:0.0
字符串的修改-题解(C语言代码) 摘要:参考代码:#include <stdio.h> #include <string.h> int main() { char In[201]; //输入字符串 char T…… 题解列表 2020年07月29日 0 点赞 0 评论 510 浏览 评分:0.0
字符串问题-题解(C语言代码) 摘要:参考代码:#include <stdio.h> #include <string.h> int main() { char a[255]; int i = 0, len …… 题解列表 2020年07月29日 0 点赞 0 评论 921 浏览 评分:0.0
蓝桥杯算法提高VIP-色盲的民主-题解(Python代码) 摘要:解题思路:注意事项:参考代码:n=int(input()) l=[] l1=[] re=[] for i in range(n): l.append(input()) s=…… 题解列表 2020年07月29日 0 点赞 0 评论 974 浏览 评分:0.0