蓝桥杯历届试题-回文数字 (C语言代码) 摘要:解题思路://第一个for为5位数;第二个for为6位数//如果flag为-1 则输出//if判断 a,b,c与n的关系注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2018年09月19日 6 点赞 1 评论 1385 浏览 评分:9.0
数字整除 (C语言代码) 摘要:解题思路:思路之后补上注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char chars[110]; int former=0,si…… 题解列表 2018年09月19日 0 点赞 0 评论 1511 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,sum; scanf("%d%d",&a&b); sum=a+b pr…… 题解列表 2018年09月19日 0 点赞 0 评论 736 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\n"); printf("He…… 题解列表 2018年09月19日 0 点赞 0 评论 827 浏览 评分:0.0
C语言训练-"水仙花数"问题1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std;int main(){ int a,b; int ge,shi,bai; cin>>a; b…… 题解列表 2018年09月19日 0 点赞 0 评论 913 浏览 评分:0.0
求圆的面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main () { float a,r; …… 题解列表 2018年09月19日 0 点赞 0 评论 909 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:最常规的思路注意事项:参考代码:#include<stdio.h>int main(){ long int num; int a,b,c,d,e,place; scanf("%ld",&nu…… 题解列表 2018年09月18日 0 点赞 0 评论 1103 浏览 评分:0.0
辗转相除法解决最大公约数,最小公倍数等于两数之积除以其最大公约数 (C语言代码) 摘要:解题思路: 辗转相除法解决最大公约数,最小公倍数等于两数之积除以其最大公约数注意事项:算法原理:若a除以b的余数为r , 则有 (a , b) = ( b ,r ) ((a,b)表示a和b的最大公约…… 题解列表 2018年09月18日 20 点赞 11 评论 2968 浏览 评分:8.0
C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:采用switch语句实现。注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d",&num); switch(num/10) {…… 题解列表 2018年09月18日 0 点赞 0 评论 876 浏览 评分:0.0
蓝桥杯算法提高VIP-寻找三位数 (C语言代码)简单写法(暴力破解) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,e,f,g,h,k; int sum1=0,sum2=0,sum3=0; for( a…… 题解列表 2018年09月18日 0 点赞 0 评论 1324 浏览 评分:0.0