1437: 蓝桥杯历届试题-城市建设 #1437:蓝桥杯历届试题-城市建设```cpp/**题目1437:蓝桥杯历届试题-城市建设*生成树变形--变形点/难点:两个消费维度+建设码头代价是点权而非边权+生成树算法理解。*第一难点解决方案:拆。不建立码头和建立码头的代价取最小。如果存在包含关系可以只计算一次。 题解列表 2024年01月15日 0 点赞 0 评论 647 浏览 评分:0.0
题解 2817: 级数求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ short k; double sn=0; …… 题解列表 2024年01月15日 0 点赞 0 评论 434 浏览 评分:0.0
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long aj; cin>>aj; …… 题解列表 2024年01月15日 0 点赞 0 评论 379 浏览 评分:6.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年01月15日 0 点赞 0 评论 473 浏览 评分:9.9
题解 1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m; cin>>m; whil…… 题解列表 2024年01月15日 0 点赞 0 评论 330 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a, b, c = 1,d = 0; c…… 题解列表 2024年01月15日 0 点赞 0 评论 441 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ long long m,n,r=0,p=0; cin>>…… 题解列表 2024年01月15日 0 点赞 0 评论 430 浏览 评分:0.0
题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long m,n; cin>>m>>…… 题解列表 2024年01月15日 0 点赞 0 评论 446 浏览 评分:0.0
题解 1147: C语言训练-角谷猜想 摘要:解题思路:没什么难想的。注意事项:在写判断奇数时要再写个不等于1,不然会无限重复。参考代码:#include <bits/stdc++.h>using namespace std;int main()…… 题解列表 2024年01月15日 0 点赞 0 评论 468 浏览 评分:9.9
1008:成绩入门评定 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n; cin>>n; if(n>=90) { cout<<…… 题解列表 2024年01月14日 0 点赞 0 评论 832 浏览 评分:0.0