虽是简单题,但注意两个陷阱 解题思路:没什么思路,保存最小值和最大值坐标,调换就可以,很简单的一道题注意事项:问题在这里:如果最小值是最后一个坐标,最大值是第一个坐标,那么会相同的坐标交换两次,也就是没有交换,所以这里可以判段一下,只交换一次如果最大值在第0个坐标,最小值在第i个坐标, 题解列表 2022年05月05日 0 点赞 0 评论 568 浏览 评分:9.9
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 599 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:a=input('') print(len(a)) for i in a: print(i,end=' ') print(…… 题解列表 2022年05月05日 0 点赞 0 评论 422 浏览 评分:0.0
分类讨论解最少刷题数(java) ##注意事项会出现重复的数,比如11113##解题思路每个人最少刷多少题,才能使刷题比他多的人不超过比他少的人。直接排好序,取中间的数val为标准统计出刷题数比val小的人数leftNum统计出刷题数比val大的人数rightNum#####1.不用再刷题的情况①.刷题数大于中间的数, 题解列表 2022年05月05日 0 点赞 0 评论 1821 浏览 评分:9.2
蓝桥杯算法提高VIP-质数的后代 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2022年05月05日 0 点赞 0 评论 489 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 613 浏览 评分:0.0
C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[1000005],n;int main(){ cin>…… 题解列表 2022年05月05日 0 点赞 0 评论 451 浏览 评分:0.0
C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 545 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { vector<int> ans; int n,…… 题解列表 2022年05月05日 0 点赞 0 评论 780 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100005],n,t=1;int main(){ c…… 题解列表 2022年05月05日 0 点赞 0 评论 484 浏览 评分:0.0