C语言解法,简单易懂 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int main(){ double f,c; scanf("%lf",&f); c=5*(f-32)/9; p…… 题解列表 2022年05月24日 0 点赞 0 评论 734 浏览 评分:8.0
优质题解 斐波那契类问题,较简单 摘要:没有java题解我就来写一个吧这题就很像兔子繁殖那题了,简单dp可以解决,题问的成虫不包括幼虫,分下两个数组就好了思路:1、建立两个数组,成虫数组old,幼虫数组young2、前面x-1天,成虫没有产…… 题解列表 2022年05月27日 0 点赞 0 评论 992 浏览 评分:8.0
小南解题--汉诺塔--248ms 摘要:'''zgn94622:08 2022/5/23'''def hann(n,a,b,c): #n代表第几块,是第1块时,打印输出 if n=…… 题解列表 2022年06月01日 1 点赞 0 评论 482 浏览 评分: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 评论 666 浏览 评分: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 评论 555 浏览 评分:8.0
P1000(c++代码)快来看看看看吧! 摘要:解题思路:输入a,b再输出a+b.注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; …… 题解列表 2022年06月03日 0 点赞 0 评论 859 浏览 评分:8.0
是人都能看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct chengji{ char xuehao[100]; char mingzi[100]; int c1;…… 题解列表 2022年06月13日 0 点赞 1 评论 275 浏览 评分: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 评论 421 浏览 评分:8.0
裸LCA,tarjan离线求即可 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <vector> using namespace std; const int N = 200010;…… 题解列表 2022年06月27日 0 点赞 0 评论 705 浏览 评分:8.0
信息学奥赛一本通T1264-合唱队形-题解(各语言代码) 摘要:从正向和反向分别求出最长上升子序列,然后两者相加 得到结果的最大值减一,就等于队形人数的最大值 总人数减去队形人数的最大值,就是最少出列人数 时间复杂度$$O(n\log n)$$,空间复杂度$…… 题解列表 2022年06月27日 0 点赞 0 评论 600 浏览 评分:8.0