小南解题--汉诺塔--248ms 摘要:'''zgn94622:08 2022/5/23'''def hann(n,a,b,c): #n代表第几块,是第1块时,打印输出 if n=…… 题解列表 2022年06月01日 1 点赞 0 评论 388 浏览 评分:8.0
信息学奥赛一本通T1597-滑动窗口-题解(C++双指针) 摘要:```cpp #include #include using std::lower_bound; inline bool f(const int*a,const int*b){return *…… 题解列表 2022年06月01日 0 点赞 0 评论 558 浏览 评分:8.0
亲密数就是在完数的基础上更进一步 摘要:for i in range(2,3001): s1=s2=1 for j in range(2,i//2+1): if i%j==0: s1+=j …… 题解列表 2022年06月02日 0 点赞 1 评论 507 浏览 评分:8.0
P1000(c++代码)快来看看看看吧! 摘要:解题思路:输入a,b再输出a+b.注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; …… 题解列表 2022年06月03日 0 点赞 0 评论 793 浏览 评分:8.0
是人都能看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct chengji{ char xuehao[100]; char mingzi[100]; int c1;…… 题解列表 2022年06月13日 0 点赞 1 评论 220 浏览 评分:8.0
暴力开解 穷举 摘要:解题思路:注意事项代码:。#include<stdio.h>#include<math.h>int main(){ int a,b,c,d; double x; scanf("%d%d…… 题解列表 2022年06月20日 0 点赞 0 评论 327 浏览 评分:8.0
裸LCA,tarjan离线求即可 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <vector> using namespace std; const int N = 200010;…… 题解列表 2022年06月27日 0 点赞 0 评论 583 浏览 评分:8.0
信息学奥赛一本通T1264-合唱队形-题解(各语言代码) 摘要:从正向和反向分别求出最长上升子序列,然后两者相加 得到结果的最大值减一,就等于队形人数的最大值 总人数减去队形人数的最大值,就是最少出列人数 时间复杂度$$O(n\log n)$$,空间复杂度$…… 题解列表 2022年06月27日 0 点赞 0 评论 470 浏览 评分:8.0
来自于一个小菜鸟的(圆的面积)题解 摘要:解题思路: # 导入 math 包 import math # π (S=πr²) math.pi 题解列表 2022年06月28日 0 点赞 0 评论 438 浏览 评分:8.0
信息学奥赛一本通T1323-活动选择-题解(各语言代码) 摘要:**python** ```python from functools import reduce print(reduce(lambda x,y:x if y[1]new SimpleEntr…… 题解列表 2022年06月30日 0 点赞 0 评论 564 浏览 评分:8.0