题解列表
2910: 找最大数序列
摘要:```cpp
#include
using namespace std;
int main()
{
int n,i,x,a[31],mark=0,max=-1;
bool ……
快速排序python解法
摘要:参考代码:def quick_sort(q, l, r): if l>=r: return i, j = l-1, r+1 x = q[(l+r)//2] while i < j: ……
1074基础解法(Python)
摘要:注意事项:sys.stdin会读取到'\n'换行符参考代码:import sysfor line in sys.stdin : if int(line) == 0 : ……
输出最高分数的学生姓名
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student{ int score; char name[100];}a[1000];int main(){……
The 3n + 1 problem(水题)
摘要:```c
#include
int fun(int n){
int cnt=0;
do{
if(n%2==0){
n/=2;
cnt++;
}
else……
简单易懂的水仙花(三行python)
摘要:解题思路:一看就会注意事项:一看就会参考代码:for i in range(100,1000): if i==(i//100)**3+(i//10%10)**3+(i%10)**3: ……
题目 1511: 蓝桥杯算法提高VIP-复数求和
摘要:解题思路:从键盘读入n个复数(实部和虚部都为整数)用链表存储,遍历链表求出n个复数的和并输出。注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef ……