[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 409 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:利用两个数组,第一个数组保存数据,第二个数组完成后移拷贝注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2022年03月27日 0 点赞 0 评论 492 浏览 评分:9.9
题解 1738: 排序 摘要:解题思路:冒泡排序我首先定义的就是n,然后定义数组,输入,判断n对数据进行排序时需要两个变量i,j,不断遍历,每一次循环确定一个位置最后输出注意事项:我考虑了n的大小,冒泡排序的变量,可是一直出现错误…… 题解列表 2022年03月27日 0 点赞 0 评论 510 浏览 评分:0.0
萌新一个小思路 摘要:解题思路:把第一次落地前和第一次落地后到第N次落地前两者独立开来注意事项:默认自由下落高度是第一次的高度参考代码:#include<stdio.h> #include<math.h> int ma…… 题解列表 2022年03月27日 0 点赞 0 评论 307 浏览 评分:9.9
运用循环小数的特点 摘要:解题思路:该题就是运用循环小数的特点:纯循环小数转化为分数:如0.4285742857…找到循环体42857,该循环体有5位,故而0.4285742857…就是42857/99999,这里有5个9这个…… 题解列表 2022年03月27日 0 点赞 0 评论 881 浏览 评分:7.1
1097: 蛇行矩阵 摘要:```java public class _1097_蛇行矩阵 { public static void main(String[] args) { Scanner scanner=new…… 题解列表 2022年03月27日 0 点赞 0 评论 418 浏览 评分:9.9
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 609 浏览 评分:9.9
数据结构-链表的基本操作 摘要:注意: 别用gets()来获取字符串,不然会跑不通 代码:按模块编写函数即可 #include #include #include int l…… 题解列表 2022年03月27日 0 点赞 0 评论 548 浏览 评分:0.0
新手易懂啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>int check(int x,…… 题解列表 2022年03月27日 0 点赞 0 评论 543 浏览 评分:9.9
for循环实现,12行代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str…… 题解列表 2022年03月27日 0 点赞 0 评论 490 浏览 评分:9.9