题解 2767: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b; cin>>a>>b; p…… 题解列表 2024年08月21日 0 点赞 0 评论 488 浏览 评分:9.9
题解 2765: 计算分数的浮点数值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a,b; cin>>a>>b; …… 题解列表 2024年08月21日 0 点赞 0 评论 557 浏览 评分:9.9
题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2024年08月21日 0 点赞 0 评论 408 浏览 评分:9.9
题解 3003: 鸡兔同笼问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<(4*…… 题解列表 2024年08月21日 0 点赞 0 评论 310 浏览 评分:9.9
分解质因数 易懂方法 摘要:解题思路:嵌套循环解法,辗转相除法这一题的感觉cpp解法较少,细节较多,还请多多指教参考代码:int a,b;scanf("%d %d",&a,&b);for(int i = a;i<=b;i++) …… 题解列表 2024年08月20日 0 点赞 0 评论 402 浏览 评分:6.0
此为ST模板(有dp) 摘要:解题思路: 就是普通的st表先学习这个就是ST表的模板,学会ST这个就是很简单的注意事项:参考代码:#include#include#include#includeusing namespace st…… 题解列表 2024年08月19日 0 点赞 0 评论 274 浏览 评分:9.9
第几项 最简单的方法 摘要:解题思路:以m>s来判断循环的始终,每轮增加n,然后累加到s即可注意事项:参考代码:int m;int n = 0,s = 0;scanf("%d",&m);while (m>s){ n++; …… 题解列表 2024年08月19日 0 点赞 0 评论 193 浏览 评分:9.9
我们就要设置一个安全的密码,安全密码的检验,easy 摘要:解题思路:yixie c++的字符串基本操作注意事项:bool arr[4] = {true};只会将第一个元素设置为true;参考代码:#include <iostream> #include <…… 题解列表 2024年08月19日 0 点赞 0 评论 206 浏览 评分:0.0
拿捏,已知元素从小到大排列的两个数组x[]和y[],请写出一个程序算出两个数组彼此之间差的绝对值中最小的一个,这叫做数组的距离 摘要:解题思路:输入,迭代器迭代,做差,比较,赋值,输出注意事项:调试信息屏蔽掉参考代码:#include <iostream> #include <vector> #include <cmath> …… 题解列表 2024年08月19日 0 点赞 0 评论 427 浏览 评分:0.0
两个条件——素数、回文 摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long int su(int n) { if(…… 题解列表 2024年08月18日 0 点赞 0 评论 245 浏览 评分:9.9