题解 2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<algorithm>#include <string>#include <…… 题解列表 2025年04月10日 0 点赞 0 评论 365 浏览 评分:0.0
简单递归调用 摘要:str = input()def func(l,d,t): if t==0: if l>d: &nbs…… 题解列表 2025年04月11日 0 点赞 0 评论 250 浏览 评分:0.0
按照要求进行模拟排序 摘要:n=int(input())m=int(input())f=[[0]*2 for i in range(n+1)]def func(x): t=0 …… 题解列表 2025年04月11日 0 点赞 0 评论 258 浏览 评分:0.0
连续自然数和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月11日 0 点赞 0 评论 165 浏览 评分:0.0
通过递推进行求解 摘要:n=int(input())f=[1]*(n+1)for i in range(1,n+1): f[i]=i*f[i-1]%998244353if n==2: &…… 题解列表 2025年04月11日 0 点赞 0 评论 220 浏览 评分:0.0
狡兔 k 窟-bfs 摘要:解题思路:要求两个点之间的最点距离,同时属于同一个洞窟的点他们之间的距离为0那么该问题可以转换为求解两个洞窟的最短距离依次构建的图是关于洞窟的而不是点例如1 3 2 1 2 3:1和4点都属于1号洞窟…… 题解列表 2025年04月11日 0 点赞 0 评论 326 浏览 评分:0.0
链表代码参考如下 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct node{ int data; …… 题解列表 2025年04月11日 0 点赞 0 评论 411 浏览 评分:0.0
暴力写法优化 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long re=0; …… 题解列表 2025年04月11日 0 点赞 0 评论 259 浏览 评分:0.0
zsbdzsbdzsbdzsbdzsbdzsbd 摘要:参考代码:n=int(input())data=[int(i)foriininput().split…… 题解列表 2025年04月11日 0 点赞 0 评论 237 浏览 评分:0.0
二分的题型,注意二分什么和结束条件 摘要:import sysinput=lambda:sys.stdin.readline().strip()n,m=map(int,input().split())f=[[0]*2 for i in ran…… 题解列表 2025年04月11日 0 点赞 0 评论 216 浏览 评分:0.0