编写题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,a=0,b=0,c=0;int j…… 题解列表 2024年12月22日 1 点赞 0 评论 301 浏览 评分:0.0
2798: 整数序列的元素最大跨度值题解 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,maxx= -1e18 ,minn=1e…… 题解列表 2024年12月22日 3 点赞 0 评论 214 浏览 评分:10.0
树型dp #2484: 信息学奥赛一本通T1579-皇宫看守(c++) 不是很详细.. 摘要:``` #include #include #include using namespace std; const int N = 1510; int n; int h[N]…… 题解列表 2024年12月22日 0 点赞 0 评论 333 浏览 评分:0.0
编写题解 2798: 整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long n,maxx=-1e18,minn…… 题解列表 2024年12月22日 0 点赞 0 评论 437 浏览 评分:0.0
编写题解 2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std;int main(){ long long n,sum=0;cin>>n; for…… 题解列表 2024年12月22日 1 点赞 0 评论 434 浏览 评分:0.0
for循环和while循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char x[1000]; char s[…… 题解列表 2024年12月22日 0 点赞 0 评论 230 浏览 评分:0.0
递归自然最好用-计算t=1+1/2+1/3+...+1/n 摘要:解题思路:递归注意事项:参考代码:#include<stdio.h>double h(int i){ if(i==1) { return 1.0; } else …… 题解列表 2024年12月21日 0 点赞 0 评论 386 浏览 评分:0.0
递归自然最好用-计算:t=1-1/(2*2)-1/(3*3)-...-1/(m*m) 摘要:解题思路:递归注意事项:参考代码:#include<stdio.h>double h(int i){ if(i==1) { return 1.0; } else …… 题解列表 2024年12月21日 0 点赞 0 评论 283 浏览 评分:0.0
少年 无爱可破情局 无情方可破全局 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int n, m, a[110], sum[110];…… 题解列表 2024年12月21日 0 点赞 0 评论 185 浏览 评分:0.0
1866: 三位数反转 摘要:解题思路:这题有多行输入,可能会造成错误注意事项:参考代码:while True: try: a = list(input()) b = a[::-1] …… 题解列表 2024年12月21日 0 点赞 0 评论 328 浏览 评分:0.0