编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[20],b[20]; int n,m; …… 题解列表 2022年03月13日 0 点赞 0 评论 174 浏览 评分:0.0
(个人思维) [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:输出部分一定要分成两部分,不能同时输出!!!参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){ …… 题解列表 2022年03月10日 0 点赞 0 评论 110 浏览 评分:9.9
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:思路是先创一个新的数组,按要求把原数组的数放进新数组的对应位置,然后用新数组替换原数组的值,实现修改原数组的效果。注意事项:感觉会有更节省空间的写法,现在的写法要在运行时开辟一块新空间,感觉…… 题解列表 2022年03月05日 0 点赞 0 评论 173 浏览 评分:9.9
自定义函数之数字后移----最简单 摘要:解题思路:注意事项:参考代码:a=int(input())b=list(map(int,input().split()))c=int(input())d=[]for i in range(c): …… 题解列表 2022年03月03日 0 点赞 0 评论 187 浏览 评分:0.0
最简单的解法 摘要:解题思路:根本不用在数组里移动元素啊,直接输出就行,话不多说,直接看代码!注意事项:参考代码#include<stdio.h> void app(int n); int main() { …… 题解列表 2022年03月03日 0 点赞 0 评论 114 浏览 评分:9.9
最笨却最锻炼脑力的方法 摘要:解题思路:最顺理成章地思路,就是费时间。正常打出题目要求格式后n-m个数需要提前拷贝前m个数后移m位将前面保存的n-m个数放到前n-m的位置上(期间涉及-1的部分需要多注意)注意事项:中间有一个环节考…… 题解列表 2022年02月22日 0 点赞 0 评论 181 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:n = int(input())lis = list(map(int, input().split()))m = int(input())for i in range(m…… 题解列表 2022年02月22日 0 点赞 0 评论 110 浏览 评分:0.0
[编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std; int main(){ int n,k,i,m; cin>>n; int a[n…… 题解列表 2022年02月03日 0 点赞 0 评论 145 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(python代码) 摘要:解题思路: 按照要求写输入代码,列表中的数据利于按照题干要求进行转换。注意事项:参考代码:n=int(input())lst1 = list(map(int,input().split()))m…… 题解列表 2022年01月25日 0 点赞 0 评论 154 浏览 评分:0.0
Java 双数组题解实现 摘要:import java.util.*; import java.io.*; public class A { public static void main(String[] args) …… 题解列表 2022年01月25日 0 点赞 0 评论 321 浏览 评分:9.9