选择排序python 摘要:解题思路: 选择排序的时间复杂度是O(n^2),其中n是待排序元素的数量。这是因为选择排序的基本操作是交换和比较,而每次交换和比较都需要遍历整个数组,因此时间复杂度为O(n^2)题意直接…… 题解列表 2023年12月13日 0 点赞 0 评论 414 浏览 评分:0.0
2903: 不高兴的津津c语言题解 摘要:解题思路:设立二维数组存储数据,在输入后用数组day[7]存判断循环中的时长最多的那天,最后判断时长是否大于8,然后输出。注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2023年12月13日 0 点赞 0 评论 377 浏览 评分:9.9
跟我徐海东学,acm金牌你也行! 摘要:参考代码:#includelong long ans[29000000], n;int main(){ scanf("%lld", &n); ans[1] = n * 6; for(…… 题解列表 2023年12月13日 1 点赞 2 评论 558 浏览 评分:10.0
找规律解决时间超限 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long n; scanf("%lld",&n); long long a[3000…… 题解列表 2023年12月13日 0 点赞 0 评论 564 浏览 评分:9.9
纸张尺寸(python硬核解法) 摘要:解题思路:给定了初始纸张的尺寸,后面按照思路一步一步来就行,直接看注释参考代码:import math #因为题目要求向下取整,所以要导入math模块 p = list(input()) …… 题解列表 2023年12月13日 0 点赞 0 评论 435 浏览 评分:0.0
【基础】思维数字的处理与判断 摘要:解题思路:按照题目给的限制不超过5位数进行解答可以使用if-else if进行解答先给定范围判断为几位数,得出结论后进行单个数字拆解,最后做一个逆序输出即可按照小白入门解法代码较多且比较磨人注意事项:…… 题解列表 2023年12月13日 0 点赞 0 评论 563 浏览 评分:10.0
C++代码实现 摘要:解题思路:sort排序,C++代码实现注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace st…… 题解列表 2023年12月13日 0 点赞 0 评论 320 浏览 评分:0.0
直接格式输出 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); printf("%o",n); retur…… 题解列表 2023年12月12日 1 点赞 0 评论 760 浏览 评分:9.9
2880: 计算鞍点 摘要:``` #include using namespace std; const int N=1000,M=100000; int a[N][N],dx[6],dy[6]; int main(…… 题解列表 2023年12月12日 0 点赞 0 评论 345 浏览 评分:0.0
遍历三位数暴力解法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ for(int i=100;i<1000;i++) { int k=i; …… 题解列表 2023年12月12日 0 点赞 0 评论 326 浏览 评分:9.9