题解列表

筛选

简单选择排序改动

摘要:解题思路:① 将if(a[j]<a[k]) 改成if(fabs(a[j])>fabs(a[k]))参考代码:#include<stdio.h> #include<math.h> void sele……

#C++1240——生日日数

摘要:思路参考注释参考代码:#include <iostream> using namespace std; int arr[]={0,31,28,31,30,31,30,31,31,30,31,30,……

蓝桥杯算法提高VIP-选择排序

摘要::bowtie:: 简单选择排序应该算是基本的排序算法了吧,下面代码中有详细说明代码此算法的过程,如果大家还是看不明白的话,可以去B站上搜索王道《数据结构》的视频看一下,我觉得它讲的还是很通俗易懂……

C# 1268: 第K极值

摘要:```cpp #include using namespace std; int n,k,a[10005]; int m; bool fun(int x){ int j=0; if ……

1739: 成绩排序

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct stu{     char name[101];     int age;……

字符格式化

摘要:解题思路:。。。。。。。。注意事项:。。。。。。。。。参考代码:n=int(input()) print(format(int(oct(n),8),&#39;o&#39;))……