蓝桥杯算法提高VIP-身份证排序 (C++代码) 摘要:解题思路: 自定义二级排序,优先比出生年月。参考代码 ① : #include<bits/stdc++.h> /* 525 ms 使用 string */ using nam…… 题解列表 2018年07月21日 1 点赞 1 评论 3739 浏览 评分:8.6
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); if(a<b) { max=…… 题解列表 2018年07月21日 0 点赞 0 评论 890 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:a,b,c三个数,首先判断a,b,如果a>=b,这时判断a,c如果a>=c,则最大值为a,如果a<c,则最大值为c. 如果a<b,判断b,c.如果b<=c,则最大值为c,反之则为b。注…… 题解列表 2018年07月21日 0 点赞 0 评论 1121 浏览 评分:0.0
蓝桥杯算法提高VIP-递归倒置字符数组 (C++代码) 摘要:解题思路:参考代码:#include<bits/stdc++.h> using namespace std; void cov(char str[], int L, int R) { if…… 题解列表 2018年07月21日 2 点赞 0 评论 1530 浏览 评分:0.0
蛇形填数 (C++代码) 摘要:解题思路: 参考代码:#include<bits/stdc++.h> using namespace std; int main() { int arr[103][103],…… 题解列表 2018年07月21日 0 点赞 0 评论 1970 浏览 评分:4.5
优质题解 蓝桥杯2015年第六届真题-表格计算 (C语言代码) 摘要:解题思路:用Grid结构保存每个格子的值,它的成员有格子串(串长小于20)、格子“坐标”(左上角和右下角的行列号)以及格内实数的值。若表格有n行m列,对于30%的数据,满足:n,m <= 5,对于10…… 题解列表 2018年07月21日 2 点赞 0 评论 2665 浏览 评分:9.8
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:运用求根公式进行分类讨论注意事项: %c前加空格参考代码:# include <stdio.h># include <math.h>int main (void){ double a,b,c…… 题解列表 2018年07月21日 1 点赞 0 评论 1847 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int N,a,i,sum; scanf("%d",&N); for(a=1;a<=N;a++){ …… 题解列表 2018年07月20日 0 点赞 0 评论 1118 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:#include <stdio.h> int main() { int a,b,c; scanf("%d,%d,",&a,&b); c=a+b; printf("c=%d\n",c…… 题解列表 2018年07月20日 0 点赞 0 评论 1133 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:这题主要是你的for(while or do while都可以,我个人比较喜欢for循环)循环有没有用正确注意事项:pow函数的头文件是#include<cmath>,我用的是万能头。参考代…… 题解列表 2018年07月20日 0 点赞 0 评论 1251 浏览 评分:0.0