小南解题--交换Easy--80ms 摘要:'''2022年03月12日 14:05:59.563zgn946'''a,b=map(int,input().split())aa=input().s…… 题解列表 2022年08月27日 0 点赞 0 评论 138 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n; int t; int i,j; int x,y; scanf("…… 题解列表 2022年12月02日 0 点赞 0 评论 100 浏览 评分:0.0
一种超简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,w=1; int t; int i,j; int x,y; sca…… 题解列表 2022年12月02日 0 点赞 0 评论 121 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy 摘要:参考代码: ```c #include int main() { int n,m; scanf("%d%d",&n,&m); int a[n],x=0,y=0; for(int…… 题解列表 2023年10月26日 0 点赞 0 评论 126 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy (C++代码) 摘要:#include<iostream> using namespace std; int main(){ int n,m,a[1000],x,y; cin>>n>>m; …… 题解列表 2017年12月18日 1 点赞 0 评论 1054 浏览 评分:0.0
STL中有swap交换(无需手搓) 摘要:#include<bits/stdc++.h> using namespace std; const int N=1010; int a[N]; int main() { int n,m…… 题解列表 2024年08月04日 0 点赞 0 评论 87 浏览 评分:0.0
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:小白菜鸟写的,看看就好#include<iostream>using namespace std;int main(){ int arr[1000]; int…… 题解列表 2024年11月06日 0 点赞 0 评论 102 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy (C语言代码)指针实现 摘要:解题思路: 思路简单注意事项:参考代码:#include<stdio.h>#include<malloc.h>typedef struct _exchange{ int x ; int y; } EX…… 题解列表 2019年04月02日 0 点赞 0 评论 616 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy-题解(C++代码) 摘要:入门题 不难 很好理解 用了swap函数 也可以用交换代码 这里就不赘述了 ```cpp #include #include using namespace std; int mai…… 题解列表 2020年04月15日 0 点赞 0 评论 377 浏览 评分:0.0
蓝桥杯算法提高VIP-交换Easy-题解(C++代码) 摘要:```cpp #include using namespace std; void f(int x,int y,int a[]) { int t=a[x-1]; a[x-1…… 题解列表 2020年05月01日 0 点赞 0 评论 349 浏览 评分:0.0