利用新建空白列表来解决交换问题(python) 摘要:解题思路:注意事项:参考代码:def remove_nums(m,s,n): s1=[] for i in range(m-n,m): s1.append(s[i]) …… 题解列表 2021年08月18日 0 点赞 0 评论 234 浏览 评分:9.9
自定义数组后移 摘要:解题思路:运用一个新的数组进行赋值,即可注意事项:参考代码:#include"stdio.h"void fun(int s[],int n,int x){ int a[10],i,j; for(i=0…… 题解列表 2021年08月19日 0 点赞 0 评论 154 浏览 评分:9.9
[编程入门]自定义函数之数字后移【C++超新颖的解法】 摘要:解题思路:将数组复制加长,然后从n-m处开始输出即可。缺点是必须保证m<n,否则无法正常输出。注意事项:参考代码:#include <iostream> using namespace std; …… 题解列表 2021年09月27日 0 点赞 0 评论 323 浏览 评分:9.9
牛逼方法简单明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void move(int n,int a[],int b[],int m){ for(int i=n-1;i>=(m%n);i--…… 题解列表 2021年10月05日 0 点赞 0 评论 188 浏览 评分:9.9
题解 1046: [编程入门]自定义函数之数字后移 摘要:参考代码:#include<stdio.h>#define N 20void move(int *a,int n,int m);void main(){ int a[N]; int i,n…… 题解列表 2021年10月21日 0 点赞 0 评论 140 浏览 评分:9.9
个人的简单思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void houyi(int d[],int t){ int m,x; scanf("%d",&m); int c[m…… 题解列表 2021年10月30日 0 点赞 0 评论 374 浏览 评分:9.9
自定义函数之数字后移【题解】 摘要:假如我往后移动m个数,我先把后面的m个数放到一个新的数组的前面,m在a数组中也就是排在x-m位,x是我输入数的个数。排完之后把前面的x-m-1个数往新数组的后面排即可。 **本题难点在于数字在数组的…… 题解列表 2021年11月06日 0 点赞 0 评论 223 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:在后移之前先把后面需要移掉的保存在数组之中,然后再进行后移,每次后移只进行一次,然后使用循环达到我们需要后移的位数。后移完成之后再把移掉的重新赋值给原数组注意事项:在后移的时候需要每次都后移…… 题解列表 2021年12月02日 0 点赞 0 评论 276 浏览 评分:9.9
题目 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:利用注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int i,a[n]; for(i=0;i<n;i++){ …… 题解列表 2021年12月16日 0 点赞 0 评论 241 浏览 评分:9.9