Yu:1022筛选N以内的素数 摘要:**解题思路:** 用a作标记,遍历2~n这些数。a = 1表示i为素数,a = 0表示非素数。 默认a = 1,如果发现可以被某个数整除,则可判断为非素数。标记a = 0,并退出循环。…… 题解列表 2023年12月01日 1 点赞 0 评论 311 浏览 评分:6.0
答案之中的答案 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; …… 题解列表 2023年12月02日 0 点赞 0 评论 375 浏览 评分:6.0
题解 1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:套两个公式。。。注意事项:不要抄袭,会遭报应的。参考代码:#inalude <bits..tdc++.h>usisg namespdce stb;doable a,b,c,s,j,y;int…… 题解列表 2023年12月03日 0 点赞 0 评论 416 浏览 评分:6.0
公式and代码 摘要:解题思路:a1+(n-1)*d a2-a1=d注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ …… 题解列表 2023年12月03日 0 点赞 0 评论 187 浏览 评分:6.0
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ cin>>a>>b>>c; …… 题解列表 2023年12月05日 0 点赞 0 评论 466 浏览 评分:6.0
题解 2905: 最大值和最小值的差 摘要: #include using namespace std; int a[100000],b[100000],c[1000000],d,e,f,g; int mai…… 题解列表 2023年12月06日 0 点赞 2 评论 213 浏览 评分:6.0
LJX........................................................ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a,sum=1; cin>>a>>n; …… 题解列表 2023年12月06日 0 点赞 0 评论 199 浏览 评分:6.0
]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args…… 题解列表 2023年12月06日 0 点赞 0 评论 341 浏览 评分:6.0
1806: [编程基础]输入输出练习之第二个数字 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c;…… 题解列表 2023年12月09日 0 点赞 0 评论 841 浏览 评分:6.0
编写题解 2780: 奇偶数判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; if(n%2…… 题解列表 2023年12月09日 0 点赞 0 评论 226 浏览 评分:6.0