2955: 判决素数个数 摘要:解题思路:循环判断x到y有多少个质数注意事项:后面定义sum来累加计算 rutern不能写成cout MYdamn里是i …… 题解列表 2024年07月17日 0 点赞 0 评论 224 浏览 评分:0.0
简单易懂求Sn的值 摘要:解题思路:Sn=a+aa+aaa+...,可以看成是Sn=A1+A2+A3+....而A1=a*10^0, A2=A1+a*10^1, A3=a*10^2+A2,所以可以得出 An=a*1…… 题解列表 2024年07月17日 0 点赞 0 评论 354 浏览 评分:0.0
2835: 计算书费 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 10int main(){ int a[N]; float price; for(int i=0;…… 题解列表 2024年07月17日 0 点赞 0 评论 206 浏览 评分:0.0
2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; int temp; …… 题解列表 2024年07月17日 0 点赞 0 评论 250 浏览 评分:0.0
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int L,M; int start,end; scanf("%d %d",&L,&M); …… 题解列表 2024年07月17日 0 点赞 0 评论 162 浏览 评分:0.0
地板砖顶着地板砖 摘要:解题思路:无注意事项:无参考代码:n=input()n=int(n)b=0for i in range(2,n): b=0 for j in range(2,i): if i…… 题解列表 2024年07月17日 0 点赞 0 评论 280 浏览 评分:0.0
迭代法求平方根 摘要:参考代码:#include<stdio.h>#include<math.h>int main(){ int a; float x1,x2=1.0; scanf("%d",&a); while(fab…… 题解列表 2024年07月17日 0 点赞 0 评论 237 浏览 评分:0.0
2777 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,…… 题解列表 2024年07月17日 0 点赞 0 评论 246 浏览 评分:0.0
2816 统计满足条件的4位数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,su…… 题解列表 2024年07月17日 0 点赞 0 评论 194 浏览 评分:0.0
题目 3011: 余数相同问题 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll a,b,…… 题解列表 2024年07月17日 0 点赞 0 评论 237 浏览 评分:0.0