蓝桥杯算法提高VIP-笨小猴 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> bool isPrime(int input) { if(input<2) re…… 题解列表 2019年01月30日 0 点赞 0 评论 1398 浏览 评分:0.0
【偶数求和】 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,flag=0,sum=0,i; while(scanf("%d%d",&n,&m)!=EOF){…… 题解列表 2019年01月30日 0 点赞 0 评论 549 浏览 评分:0.0
C语言训练-求PI* (C语言代码)·真&&稳 通用for 摘要:解题思路:根据题意想出框架直接写。注意事项:注意审题是1.0/i的某一项结果绝对值小于10^6。。。特别警告 千万别直接输出3.141591。会被老师打死的。。。。参考代码:#include<std…… 题解列表 2019年02月05日 1 点赞 0 评论 1309 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码)为通俗易懂而生——飞扬 摘要:解题思路: 素数除2之外,其他都是奇数注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); for (…… 题解列表 2019年01月30日 0 点赞 0 评论 1101 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:注意事项:特别注意5.0/9.0分子分母两项必须保证至少有一项为小数,因为如果写成5/9,编译器会把结果默认为整型0而不是一个浮点型数参考代码:#include<stdio.h>int ma…… 题解列表 2019年01月30日 0 点赞 0 评论 656 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项: 2*x - 1不能写成2x - 1 3*x - 11不能写成3x - 11参考代码:#include& 题解列表 2019年01月30日 0 点赞 0 评论 594 浏览 评分:0.0
内码对称 位运算 摘要:参考代码:#include <stdio.h> #include <math.h> int main() { long long n,tmp,tmp1; int cnt=0,…… 题解列表 2019年01月30日 0 点赞 0 评论 859 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量 (C++代码) 摘要:解题思路:直接暴力。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>…… 题解列表 2019年01月30日 2 点赞 0 评论 701 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*编制程序,输入n个整数(n从键盘输入,n>0),输出它们的偶数和。*/#include<stdio.h>int main(){ int n, sum = 0, …… 题解列表 2019年01月30日 0 点赞 0 评论 943 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i, n, sum1 = 2, sum = 0; scanf("%d", &n); f…… 题解列表 2019年01月30日 0 点赞 0 评论 894 浏览 评分:0.0