2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年07月20日 0 点赞 0 评论 375 浏览 评分:0.0
计算分数的浮点数值 摘要:解题思路:注意事项:保留九位小数,注意被除数不能为零参考代码:a,b = map(int,input(().split()) if b != 0: result = round(a/b,9) …… 题解列表 2024年07月21日 0 点赞 0 评论 677 浏览 评分:0.0
2883: 矩阵加法 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年07月21日 0 点赞 0 评论 236 浏览 评分:0.0
用快读scanf别用cin 摘要:解题思路:/*带权并查集模板*/注意事项:参考代码:#include<bits/stdc++.h>typedef long long ll;using namespace std;int fa[100…… 题解列表 2024年07月21日 0 点赞 0 评论 291 浏览 评分:0.0
判断数正负 摘要:解题思路:注意事项:参考代码:N = int(input())if N > 0: print("positive")elif N == 0: print("zero")elif N < 0…… 题解列表 2024年07月22日 0 点赞 0 评论 499 浏览 评分:0.0
vector写数组 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<in…… 题解列表 2024年07月22日 0 点赞 0 评论 190 浏览 评分:0.0
优先队列的使用 摘要:#include<bits/stdc++.h> using namespace std; priority_queue<int>v;//大根堆 int main() { int n,…… 题解列表 2024年07月22日 0 点赞 0 评论 181 浏览 评分:0.0
编写题解 2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch…… 题解列表 2024年07月22日 0 点赞 0 评论 442 浏览 评分:0.0
2853: 字符替换 c++ (string) 摘要:解题思路:注意事项:参考代码: #include <bits/stdc++.h> using namespace std; const int N = 1e3; typedef…… 题解列表 2024年07月22日 0 点赞 0 评论 180 浏览 评分:0.0
c语言牛顿迭代法求平方根 摘要:# C语言迭代法求平方根 迭代法也称牛顿迭代法,核心公式是**牛顿迭代公式**: $$x\_{n+1}=x\_{n}-\frac{f(x\_{n})}{f^{\prime}(x\_{n})}$$ …… 题解列表 2024年07月23日 0 点赞 0 评论 383 浏览 评分:0.0