蓝桥杯基础练习VIP-龟兔赛跑预测Python版 摘要:解题思路:注意事项:参考代码:#蓝桥杯基础练习VIP-龟兔赛跑预测Python版 v1,v2,t,s,l = map(int,input().strip().split()) x1,x2,time…… 题解列表 2022年03月27日 0 点赞 0 评论 889 浏览 评分:9.9
for循环实现,12行代码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; str…… 题解列表 2022年03月27日 0 点赞 0 评论 630 浏览 评分:9.9
新手易懂啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>#include<stdlib.h>int check(int x,…… 题解列表 2022年03月27日 0 点赞 0 评论 658 浏览 评分:9.9
数据结构-链表的基本操作 注意:别用gets()来获取字符串,不然会跑不通代码:按模块编写函数即可#include#include#includeintlen;typedefstructnode{intdate;structnode*next;}node,*list;listinit(){listL;L=(node*)mall 题解列表 2022年03月27日 0 点赞 0 评论 653 浏览 评分: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 评论 983 浏览 评分: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