题解列表

筛选

1350: 分糖果-c++直接上模板

摘要:解题思路:传递糖果的方式是广搜,先定义一个node结构体struct node {     int num;//节点编号     int step;//访问步数 };然后直接上广搜模板void……

继续畅通工程

摘要:解题思路:最小生成树,如果道路是好的就提前连上且不用成本注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; s……

数据结构-集合union(基础)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{    int L[200];    int leng……

python选择排序

解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()foriina:print(i)

汽水瓶(python代码)

摘要:解题思路:注意事项:参考代码while True:    n=int(input())    if n==0:        break    c=0    while n>=3:        c=……

自定义函数之数字后移

解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{staticScannersc=newScanner(System.in);publicstaticvoidmain(String[]args){intN=sc.nextInt();int[]