[编程入门]自定义函数处理素数-题解(Python代码) 摘要:解题思路:先定义函数,在调用函数注意事项:参考代码:def isprime(x): #定义一个判断是否为素数的函数 for i in range(2,x): i…… 题解列表 2020年12月05日 0 点赞 0 评论 370 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串跳步-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include <iostream>using namespace std;int main(){ string…… 题解列表 2020年12月05日 0 点赞 0 评论 329 浏览 评分:0.0
用筛法求之N内的素数。 -题解 ( 两法 ) (C语言代码) 摘要:解题思路:注意事项:参考代码://法一:核心 立flag; #include<stdio.h>int main(){ int n,k,i; int flag; scanf("%d",&n); for(…… 题解列表 2020年12月05日 0 点赞 0 评论 837 浏览 评分:8.0
C语言训练-斐波纳契数列-题解(C语言代码) 摘要:解题思路:参考代码:#include<stdio.h>int main (){ int i,x; int a=1,b=1,c; scanf("%d",&x); if(x==1)…… 题解列表 2020年12月05日 0 点赞 0 评论 375 浏览 评分:0.0
[亲和数]-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int yuehe(int x){ int sum=1; for(int i=2;i<=x/2;i++){ if(x%i==0) …… 题解列表 2020年12月05日 0 点赞 0 评论 283 浏览 评分:0.0
二级C语言-计算素数和-题解(C语言代码) 摘要:#include <stdio.h>#include <math.h>int isprime(int x){ int i,j; if(x==2) return 1; i…… 题解列表 2020年12月05日 0 点赞 0 评论 1631 浏览 评分:9.9
字符排列问题 高中排列组合的知识-不会的自己去补习-让你耳目一新 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int jiecheng(int m) { return(m==1?1:m*(m-1)…… 题解列表 2020年12月05日 0 点赞 0 评论 1048 浏览 评分:4.0
[编程入门]电报加密-题解(C++代码) 摘要:解题思路:wu注意事项:新手使用参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char a[10000]; …… 题解列表 2020年12月05日 0 点赞 0 评论 1241 浏览 评分:9.9
字符串的修改-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(void) { char a[200]; char b[200]…… 题解列表 2020年12月05日 0 点赞 3 评论 676 浏览 评分:6.0
[编程入门]完数的判断-题解(C++代码) 摘要:解题思路:一级循环,先找出完数,二级循环 ; 因子条件判断完数 ; 完数后面的英文 , 三级循环,从而列出因子 ; 重新s归零。注意事项:参考代码:#include <iostream>using n…… 题解列表 2020年12月05日 0 点赞 0 评论 570 浏览 评分:0.0