【回文数(二)】 (C语言代码) 摘要:解题思路:在while(1)大循环中,没有结果不出来注意事项:数组要赋初值参考代码:#include "iostream" using namespace std; #define MAXSIZE…… 题解列表 2019年02月14日 0 点赞 0 评论 1247 浏览 评分:0.0
求圆的面积 (C语言代码) 摘要:解题思路:圆的面积S=π×(r^2注意事项:π参考代码:#include <stdio.h>int main(){ double a,s; double c=3.1415; scanf("…… 题解列表 2019年02月14日 0 点赞 0 评论 506 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 (C语言代码) 摘要:#include<stdio.h>struct A{ int shibu; int xubu; struct A *p;};int main(){ int n,i,shi=0,xu=0; scanf(…… 题解列表 2019年02月14日 0 点赞 0 评论 680 浏览 评分:0.0
蓝桥杯算法提高VIP-字符串比较 (C语言代码) 摘要:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; int i,m,n; scanf("%s %s",a,b); m=…… 题解列表 2019年02月14日 0 点赞 0 评论 672 浏览 评分:0.0
蓝桥杯算法训练VIP-装箱问题 (C++代码)DP 摘要: 这道题的状态转移方程还是挺容易找的,操作稍微费点心就可以了。参考代码:#include<bits/stdc++.h>#define hh ios::sync_with_stdio(false),c…… 题解列表 2019年03月23日 0 点赞 0 评论 1035 浏览 评分:0.0
蓝桥杯算法提高VIP-数组输出 (C语言代码) 摘要://出题的人表达不清晰,题目意思是:最后要把绝对值最大的数的绝对值和下标输出//一定要变成绝对值的形式,如果是原形就出错了 #include<stdio.h>#include<math.h>int m…… 题解列表 2019年02月14日 0 点赞 0 评论 636 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[100],k; for(i=1;i<=10;i++)scanf("%d",&a[i]); f…… 题解列表 2019年02月14日 0 点赞 0 评论 503 浏览 评分:0.0
蓝桥杯算法提高VIP-模拟计算器 (C语言代码) 摘要://注意:输入两个整数和一个字符用scanf的时候,一定要按格式#include<stdio.h>int main(){ int a,b; char n; scanf("%d %d %c",&a,&b…… 题解列表 2019年02月14日 0 点赞 0 评论 800 浏览 评分:0.0
【亲和数】 (C语言代码)记得点赞哦! 摘要:解题思路:(1)先求出a的约数,将他的约数累加, (2)如果a的约数与b相等,着进行(1),否输出NO; &nb 题解列表 2019年02月14日 0 点赞 0 评论 951 浏览 评分:0.0
蓝桥杯算法提高VIP-一元一次方程 (C语言代码) 摘要:#include<stdio.h>int main(){ double a,b,c; scanf("%lf%lf",&a,&b); if(a!=0) { c=-b/a; printf("%.2lf…… 题解列表 2019年02月14日 0 点赞 0 评论 612 浏览 评分:0.0