P1000(c++代码)快来看看看看吧! 摘要:解题思路:输入a,b再输出a+b.注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; …… 题解列表 2022年06月03日 0 点赞 0 评论 864 浏览 评分:8.0
是人都能看 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct chengji{ char xuehao[100]; char mingzi[100]; int c1;…… 题解列表 2022年06月13日 0 点赞 1 评论 279 浏览 评分: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 评论 429 浏览 评分:8.0
裸LCA,tarjan离线求即可 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <vector> using namespace std; const int N = 200010;…… 题解列表 2022年06月27日 0 点赞 0 评论 716 浏览 评分:8.0
信息学奥赛一本通T1264-合唱队形-题解(各语言代码) 摘要:从正向和反向分别求出最长上升子序列,然后两者相加 得到结果的最大值减一,就等于队形人数的最大值 总人数减去队形人数的最大值,就是最少出列人数 时间复杂度$$O(n\log n)$$,空间复杂度$…… 题解列表 2022年06月27日 0 点赞 0 评论 614 浏览 评分:8.0
来自于一个小菜鸟的(圆的面积)题解 摘要:解题思路: # 导入 math 包 import math # π (S=πr²) math.pi 题解列表 2022年06月28日 0 点赞 0 评论 549 浏览 评分: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 评论 669 浏览 评分:8.0
信息学奥赛一本通T1239-统计数字-题解(各语言代码) 摘要:**python** ```python from collections import Counter for i in sorted(Counter(int(input()) for _ i…… 题解列表 2022年06月30日 0 点赞 0 评论 553 浏览 评分:8.0
1067:二级C语言-分段函数 摘要: #include #include int main() { float x; int i; scanf("%f",&x); …… 题解列表 2022年07月03日 0 点赞 0 评论 581 浏览 评分:8.0
优质题解 1508: 蓝桥杯算法提高VIP-和最大子序列 (巧解) 摘要:### 注意点: 1:求的是某个序列的最大值; 2:子序列的定义; 3:初值的选取; ### 思路: 1:将输入的数组设为a[n],建立一个和数组sum[n],令s…… 题解列表 2022年07月05日 0 点赞 1 评论 928 浏览 评分:8.0