2905: 最大值和最小值的差 摘要:```#include using namespace std; int N[1000000],n,b; int main(){ cin>>n; for( int i=1;i>N[i];…… 题解列表 2023年12月01日 0 点赞 0 评论 211 浏览 评分:9.9
求两个数的最大公约数和最小公倍数 摘要:解题思路:两个数的最大公约数可以用辗转相除法来计算,求得最大公约数后,由于最大公约数和最小公倍数的乘积等于这两个数的乘积,所以用两个数的乘积除以最大公约数就是这两个数的最小公倍数。参考代码:#incl…… 题解列表 2023年12月01日 0 点赞 0 评论 135 浏览 评分:0.0
题解 2840: 向量点积计算 摘要: #include using namespace std; int a[100000],b[100000],sum,c,d,e,f; int main(){ …… 题解列表 2023年12月01日 1 点赞 1 评论 201 浏览 评分:9.9
2903: 不高兴的津津 摘要:``` #include using namespace std; int school[8],home[8],sum[8],ans; int main(){ for( int i=1;i…… 题解列表 2023年12月01日 0 点赞 0 评论 173 浏览 评分:0.0
题解 1099: 校门外的树 摘要: #include using namespace std; int a[100000],c,b,sum,d,e,f; int main(){ cin…… 题解列表 2023年12月01日 0 点赞 0 评论 201 浏览 评分:0.0
2901: 查找特定的值 摘要:```#include using namespace std; int n,x,N[100000]; int main(){ cin>>n; for( int i=1;i>N[i]; …… 题解列表 2023年12月01日 0 点赞 0 评论 172 浏览 评分:0.0
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include <iostream>using namespace std;int main() { int N,sum = 0; cin >> N…… 题解列表 2023年11月30日 0 点赞 1 评论 171 浏览 评分:9.9
3077: 信息学奥赛一本通T1332-周末舞会 摘要:解题思路:自己想注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b…… 题解列表 2023年11月30日 0 点赞 0 评论 248 浏览 评分:9.9
c++ 边乘边加 摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j…… 题解列表 2023年11月30日 0 点赞 0 评论 341 浏览 评分:6.0
利用C++输出1000以内的所有水仙花数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main…… 题解列表 2023年11月30日 0 点赞 0 评论 139 浏览 评分:0.0