数据结构-链表的基本操作 注意:别用gets()来获取字符串,不然会跑不通代码:按模块编写函数即可#include#include#includeintlen;typedefstructnode{intdate;structnode*next;}node,*list;listinit(){listL;L=(node*)mall 题解列表 2022年03月27日 0 点赞 0 评论 652 浏览 评分:0.0
用while使输入输出简便化 摘要:参考代码:#include"iostream" int main() { char list[5],l=0; while(std::cin>>list[l])l++; std::cou…… 题解列表 2022年03月27日 0 点赞 0 评论 753 浏览 评分:9.9
1097: 蛇行矩阵 ```javapublicclass_1097_蛇行矩阵{publicstaticvoidmain(String[]args){Scannerscanner=newScanner(System.in);inta=scanner.nextInt();intb=a;int[][]nums=newint[a 题解列表 2022年03月27日 0 点赞 0 评论 528 浏览 评分:9.9
运用循环小数的特点 摘要:解题思路:该题就是运用循环小数的特点:纯循环小数转化为分数:如0.4285742857…找到循环体42857,该循环体有5位,故而0.4285742857…就是42857/99999,这里有5个9这个…… 题解列表 2022年03月27日 0 点赞 0 评论 982 浏览 评分:7.1
萌新一个小思路 摘要:解题思路:把第一次落地前和第一次落地后到第N次落地前两者独立开来注意事项:默认自由下落高度是第一次的高度参考代码:#include<stdio.h> #include<math.h> int ma…… 题解列表 2022年03月27日 0 点赞 0 评论 401 浏览 评分:9.9
题解 1738: 排序 解题思路:冒泡排序我首先定义的就是n,然后定义数组,输入,判断n对数据进行排序时需要两个变量i,j,不断遍历,每一次循环确定一个位置最后输出注意事项:我考虑了n的大小,冒泡排序的变量,可是一直出现错误,后来查看题解的时候才发现测试案例可能不是一组, 题解列表 2022年03月27日 0 点赞 0 评论 692 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:利用两个数组,第一个数组保存数据,第二个数组完成后移拷贝注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2022年03月27日 0 点赞 0 评论 600 浏览 评分:9.9
[编程入门]带参数宏定义练习 只需要swap函数就可以解决!!!! 摘要:解题思路:本题很简单!!!理解swap交换函数就可以注意事项:参考代码:#include <iostream>using namespace std;#define N(x,y) swap(x,y)i…… 题解列表 2022年03月27日 0 点赞 0 评论 511 浏览 评分:0.0
编写题解 1145: C语言训练-自由落体问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n; float…… 题解列表 2022年03月27日 0 点赞 0 评论 482 浏览 评分:0.0
蓝桥杯2020年第十一届国赛真题-天干地支 ```c#includetypedefstructtiangan_dizhi{intn;charc[10];}td;intmain(){tdtg[10]={{1,"jia"},{2,"yi"},{3,"bing"},{4,"ding"},{5, 题解列表 2022年03月27日 0 点赞 0 评论 824 浏览 评分:0.0