蛇行矩阵-------(python) 摘要:```python n=int(input()) a=1 #是第一个数 d=0 #列是从1开始加 s=1 while n>0:#循环五次 b=0 #将b重置 b+=s #…… 题解列表 2021年12月02日 0 点赞 0 评论 687 浏览 评分:0.0
数字逆序输出的写法 摘要:解题思路: 一次输入10个数字,则定义一个数组元素为10的数组;后利用从右往左递降输出即可注意事项:数组长度为10,所以数组下标从0开始参考代码:#include<stdio.h>int m…… 题解列表 2021年12月02日 0 点赞 0 评论 1105 浏览 评分:9.9
10个乱序数据的选择排序 摘要:解题思路:注意事项:数组长度为10,但是从0开始计数的参考代码:#include <stdio.h>int main(){ int i,j,t,a[10]; //定义变量及数组为基本整型 …… 题解列表 2021年12月02日 0 点赞 0 评论 627 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ double m,n,h=0.0,l,s; cin>>m>…… 题解列表 2021年12月02日 0 点赞 0 评论 497 浏览 评分:0.0
字符串的修改(c语言) ```c#include#include#include#includeintmain(){inti,j=0;intx,x1,t,num=0;chara[203],b[203];scanf("%s%s",&a,&b);x=fabs(strlen(a)-strlen(b));//差if(strlen(a 题解列表 2021年12月02日 0 点赞 0 评论 885 浏览 评分:0.0
编写题解 1574: 蓝桥杯算法提高VIP-选择排序 摘要:#include<iostream> using namespace std; int main() { int n,j,i,min,flag,x; cin>>n; …… 题解列表 2021年12月02日 0 点赞 0 评论 540 浏览 评分:0.0
【sor魔法再现】1141: 百钱百鸡---史上最短AC代码,sor一行流!三层for循环嵌套+两个条件判断+一个字符串打印+外面python列表推导式一套,3、2、1,搞定 解题思路:【sor魔法再现】1141:百钱百鸡---史上最短AC代码,sor一行流!三层for循环嵌套+两个条件判断+一个字符串打印+外面python列表推导式一套,搞定标题就是思路,而且已经是分解级别的思路了,按照标题组织代码都行、注意事项:你看一眼代码觉得挺长, 题解列表 2021年12月02日 0 点赞 0 评论 1542 浏览 评分:7.6
自定义函数之数字后移 解题思路:在后移之前先把后面需要移掉的保存在数组之中,然后再进行后移,每次后移只进行一次,然后使用循环达到我们需要后移的位数。后移完成之后再把移掉的重新赋值给原数组注意事项:在后移的时候需要每次都后移到第一个参考代码:#includevoidretrusive(inta[], 题解列表 2021年12月02日 0 点赞 0 评论 595 浏览 评分:9.9
哥德巴赫曾猜测 摘要:解题思路:编写一个函数确认两个数是否非素数,并且利用循环得出次数注意事项:参考代码:#include<iostream>using namespace std;int fun(int );int ma…… 题解列表 2021年12月02日 0 点赞 0 评论 642 浏览 评分:8.0
Little Xie's issue 摘要:解题思路:代码有看不懂得直接问行了。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[1000]; int n;…… 题解列表 2021年12月03日 0 点赞 0 评论 632 浏览 评分:0.0