蓝桥杯基础练习VIP-时间转换-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main (){ int h,m,s; int t; …… 题解列表 2020年08月07日 0 点赞 0 评论 377 浏览 评分:0.0
字符串的输入输出处理-题解(C++代码) 摘要:解题思路: gets()函数: scanf("%s", str);输入进字符数组中,直到回车结束&nbs 题解列表 2020年08月07日 0 点赞 0 评论 586 浏览 评分:0.0
字符逆序-题解(C语言代码)最简单的代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main (){ char s[100]; gets(s); f…… 题解列表 2020年08月07日 0 点赞 0 评论 391 浏览 评分: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 评论 431 浏览 评分:0.0
用筛法求之N内的素数。 -题解(C++代码) 摘要:解题思路: 筛法遍历,从2到n走一遍,是素数就输出,不是就跳过注意事项: 布尔变量的判断函数参考代码:#include <bits/stdc++.h> using namespace std; …… 题解列表 2020年08月07日 0 点赞 0 评论 740 浏览 评分:9.9
蓝桥杯基础练习VIP-完美的代价-题解(C++代码)-笔记 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { char s[10000]; int n…… 题解列表 2020年08月06日 0 点赞 0 评论 1091 浏览 评分:8.0
[编程入门]自定义函数处理素数-题解(C语言代码) 摘要:解题思路:根据素数(又称质数)是指在大于1的自然数中,除了1和该数本身外,无法被其他自然数整除的数来解答。注意事项:在判断n是否为素数时,都知道从2开始,用n来除以i(初始值为2)a来看是否有余数,但…… 题解列表 2020年08月06日 0 点赞 0 评论 480 浏览 评分: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 评论 368 浏览 评分:6.0
[编程入门]温度转换-题解(C语言代码) 摘要:注意事项: 第一个是华氏度转摄氏度,第二个摄氏度转华氏度。参考代码:/*c=5*(f-32)/9 f=c*9/5+32*/#include<stdio.h>int main(){ doubl…… 题解列表 2020年08月06日 0 点赞 8 评论 2576 浏览 评分: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 评论 584 浏览 评分:9.9