字符逆序-题解(C语言代码)最简单的代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main (){ char s[100]; gets(s); f…… 题解列表 2020年08月07日 0 点赞 0 评论 334 浏览 评分:0.0
二级C语言-计算素数和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int isprime(int x){ int sum=0; int temp=0;//素数temp…… 题解列表 2020年08月07日 0 点赞 0 评论 370 浏览 评分:0.0
用筛法求之N内的素数。 -题解(C++代码) 摘要:解题思路: 筛法遍历,从2到n走一遍,是素数就输出,不是就跳过注意事项: 布尔变量的判断函数参考代码:#include <bits/stdc++.h> using namespace std; …… 题解列表 2020年08月07日 0 点赞 0 评论 613 浏览 评分:9.9
蓝桥杯基础练习VIP-完美的代价-题解(C++代码)-笔记 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { char s[10000]; int n…… 题解列表 2020年08月06日 0 点赞 0 评论 985 浏览 评分:8.0
[编程入门]自定义函数处理素数-题解(C语言代码) 摘要:解题思路:根据素数(又称质数)是指在大于1的自然数中,除了1和该数本身外,无法被其他自然数整除的数来解答。注意事项:在判断n是否为素数时,都知道从2开始,用n来除以i(初始值为2)a来看是否有余数,但…… 题解列表 2020年08月06日 0 点赞 0 评论 402 浏览 评分:0.0
求平方和-题解(C语言代码) 摘要:#includeint main(){ int a=0,b=0,sum=0; scanf("%d%d",&a,&b;); sum=a*a+b*b; printf("%d",su…… 题解列表 2020年08月06日 0 点赞 1 评论 348 浏览 评分:6.0
[编程入门]温度转换-题解(C语言代码) 摘要:注意事项: 第一个是华氏度转摄氏度,第二个摄氏度转华氏度。参考代码:/*c=5*(f-32)/9 f=c*9/5+32*/#include<stdio.h>int main(){ doubl…… 题解列表 2020年08月06日 0 点赞 8 评论 2476 浏览 评分:9.8
蓝桥杯2017年第八届真题-日期问题-题解(C++代码) 摘要:参考代码:#include using namespace std; int yue[] = {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};…… 题解列表 2020年08月06日 0 点赞 0 评论 502 浏览 评分:9.9
二级C语言-平均值计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int a[10],sum=0; for(int i=0;i<10;i++…… 题解列表 2020年08月06日 0 点赞 0 评论 318 浏览 评分:0.0
2^k进制数-题解(Java代码) 摘要: ## 解题思路 参考网上  ## 代码 ```java import ja…… 题解列表 2020年08月06日 0 点赞 0 评论 1031 浏览 评分:9.9