题解列表

筛选

2021: 坐标排序(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> typedef struct point {     int x, y, z; ……

2020: 快速排序练习(C语言)

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int Partition(int *arr, int low, int high) {     if (arr == NU……

【C++较复杂版解法】

摘要:#include <iostream> #include <string.h>//引用字符串函数头文件 using namespace std; int main() {  char str……

三个字符串的排序【题解】(冒泡排序和选择排序)

摘要:解题思路:        冒泡排序和选择排序在排序问题里是两种比较简单常用的方法。先讲下两种排序方法的实现过程,这两种排序方法是如何完成排序的。都以从小到大升序举例。                冒……

【C++较复杂版解法】

摘要:#include <iostream> using namespace std; int main() {  int N,sum=0,list[100];  while(cin>>N&&N!……

好像一遍过(用了List)

```javaimportjava.util.*;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);while(sc.hasNext()){intn=sc.nextInt();if(n=

题目 1205: 字符串的修改

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() {     char a[201],b[201];     in……

蓝桥杯算法训练VIP-矩阵加法 (python)

解题思路:这个网站对写python的太不友好了,都没有答案,还得自己写,哭了哭了注意事项:参考代码:N,M=map(int,input().split())l=[]l2=[]foriinrange(N):lis=list(map(int,input().split()))l.append(lis)fo

明明的随机数-python简单解决

1、用map()高阶函数解决输入问题;2、使用集合特性去重;3、列表函数直接排序;```pythonn=int(input())l=set(map(int,input().split()))#利用集合去重l1=list(l)#集合转列表l1.sort()#列表排序print(len(l1))[prin