题解列表
Python 深度优先算法(DFS)
摘要:解题思路:注意事项:参考代码:n,r = map(int,input().strip().split())
nums = [i for i in range(1,n+1)]
result = []……
本来是通过排序后的下标去寻找,但是不知道为啥是错。。。。
摘要:这题有一个指向关系,化成数组在排序.
2 4 9 10 15 17 22
对应关系随着排序,
6 2 8 3 12 17 4
`
import java.util.*;
p……
1274: 排座椅[NOIP2008 年普及组]
摘要:```cpp
#include
#include
using namespace std;
struct ff
{
int x,y,p,q;
}a[2001];
struct ……
2717——蓝桥杯2022年第十三届决赛真题-左移右移(仿写题解)
摘要: import java.util.Scanner;
import java.util.Arrays;
public class Main {
public st……
算术表达式与顺序执行--1.A+B Problem
摘要:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d",a+b); retur……
1275: 吹哨传球
摘要:```cpp
#include
using namespace std;
int main()
{
int n,m;
int F[31][31];
scanf(……
LikeWater - 2701: 蓝桥杯真题-取模(请问有谁知道看错题的痛!一直看成n mod x == m mod y 隔这儿一只写。。。)
摘要:####这是题目:给定 n, m ,问是否存在两个不同的数 x, y 使得 1 ≤ x < y ≤ m 且 n mod x = n mod y 。
***最后的地方我看成了n mod x = m m……
1492: 蓝桥杯算法提高VIP-产生数
摘要:```cpp
#include
#include
using namespace std;
int tag[10][10],d[10],p[1000];
int main()
{
……