[编程入门]成绩评定-题解(C语言代码) 摘要:解题思路:注意事项:参考代码: 方法1,#includeint main(){ int x,y; scanf("%d",&x,&y); if…… 题解列表 2020年11月20日 0 点赞 0 评论 749 浏览 评分:0.0
C语言考试练习题_保留字母-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ char a[1000];int i=0; gets(a); while(…… 题解列表 2020年11月20日 0 点赞 0 评论 810 浏览 评分:0.0
C语言考试练习题_一元二次方程-题解(C语言代码)完全不用数组和定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){double a,b,c,i,j,h,sq;scanf("%lf %lf %lf"…… 题解列表 2020年11月20日 0 点赞 0 评论 949 浏览 评分:0.0
[编程入门]实数的打印-题解(C语言代码) 摘要:解题思路:相当于循环第n次,输出n个数注意事项:参考代码:#include<stdio.h>int main(){int i,j;float a;scanf("%f",&a);for(i=1;i<=3…… 题解列表 2020年11月20日 0 点赞 0 评论 663 浏览 评分:0.0
蓝桥杯历届试题-九宫重排-题解(C++代码) ###起点和终点区别,一起搜索```cpp#include#include#include#includeusingnamespacestd;inta[4][2]={1,0,-1,0,0,1,0,-1};//坐标数组,进行上下左右移动mapmp1;//存每次变换的结果mapmp2;//存每种结果的步数 题解列表 2020年11月20日 0 点赞 0 评论 958 浏览 评分:0.0
人见人爱A+B-题解(C语言代码) 摘要:分秒直接模60就行。 ```c #include int main() { int n; scanf("%d",&n); while(n--) { int h1,h2…… 题解列表 2020年11月20日 0 点赞 0 评论 864 浏览 评分:8.0
人民币问题-题解(C语言代码)只需要一层循环 摘要:```c 只需要一层循环即可。 #include int main() { int n; while(scanf("%d",&n)!=EOF) { int i,len…… 题解列表 2020年11月20日 0 点赞 0 评论 967 浏览 评分:9.9
C语言训练-排序问题<2>-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include#define N 10int main(){ int a[10],i,j,temp; for(i=0;i<N;i++)//此处循环为了输入1…… 题解列表 2020年11月20日 0 点赞 0 评论 820 浏览 评分:6.0
蓝桥杯算法提高VIP-身份证号码升级-题解(C++代码) ```cpp#includeusingnamespacestd;intmain(){inta[]={7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2};intb[]={1,0,-1,9,8,7,6,5,4,3,2};strings;cin>>s;s=s.substr(0, 题解列表 2020年11月20日 0 点赞 0 评论 658 浏览 评分:0.0
【滑动窗口】数组求和-题解(Java代码) ###滑动窗口思想:将要相加的m个数字圈起来开头:先加上数组前m个数,成立一个窗口后续:将窗口向后移动,加上窗口后面的一个数字,同时减去窗口的第一个数字,使窗口的大小始终不变(永远是m个数相加)###注意:圈首尾位置的时候容易越界,用%解决###参考代码:```javaimportjava.util. 题解列表 2020年11月20日 0 点赞 0 评论 1572 浏览 评分:0.0