循环解决数字后移问题 摘要:解题思路:用两个数组即可解决此题,第一个数组用于存储用户输入的数据,第二个数组用于存储交换后的数据把第一个数组的1~8位存入第二个数组的3~10位,9,10位存入1,2位再输出即可注意事项:参考代码:…… 题解列表 2024年01月24日 0 点赞 0 评论 567 浏览 评分:10.0
C++语言实现,具体操作在注释里面 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[100] = {0};//暂时存储数据 i…… 题解列表 2024年01月06日 0 点赞 0 评论 489 浏览 评分:0.0
自定义函数之数字后移,vector 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>#include <iomanip>#include<cstdio>#include<cstring…… 题解列表 2023年12月29日 0 点赞 0 评论 403 浏览 评分:0.0
一遍过题之个人收藏 摘要:#include<stdio.h> void fun(int a[100],int m,int n,int b[100]){ int l=0; for(int k=n-m;k<n…… 题解列表 2023年12月20日 0 点赞 0 评论 341 浏览 评分:0.0
1046: [编程入门]自定义函数之数字后移 摘要:```python n = int(input()) li = list(map(str,input().split())) m = int(input()) for i in range(m…… 题解列表 2023年12月20日 0 点赞 0 评论 396 浏览 评分:0.0
.................. 摘要:```c #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i=0;i…… 题解列表 2023年12月19日 0 点赞 0 评论 525 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void worker(int n){ int i,a[n+1],j=0; for(i=0;i<=n;i++)scanf(…… 题解列表 2023年12月16日 0 点赞 0 评论 2118 浏览 评分:7.3
自定义函数之数字后移(Java代码) 摘要: import java.util.Scanner; public class L1046 { public static void main(String[] args)…… 题解列表 2023年12月08日 0 点赞 0 评论 527 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void yd(int a[],int m,int n){ int i,b[n]; for(i=0;i<n;i++) …… 题解列表 2023年11月26日 0 点赞 0 评论 398 浏览 评分:0.0
循环队列之数字后移 摘要:解题思路:看成循环队列即可注意事项:参考代码:n=int(input())x=list(input().split())y=list(x)m=int(input())for i in range(0,…… 题解列表 2023年11月25日 0 点赞 0 评论 451 浏览 评分:0.0