2832: 第n小的质数 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; for(int i…… 题解列表 2023年07月15日 1 点赞 3 评论 320 浏览 评分:9.9
第n小的质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2023年07月15日 0 点赞 0 评论 360 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(i…… 题解列表 2023年07月15日 0 点赞 0 评论 440 浏览 评分:0.0
检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(int …… 题解列表 2023年07月15日 0 点赞 0 评论 336 浏览 评分:0.0
2的N次方,数组版 摘要:解题思路:思考之前所学的高精度乘法,将每一位都乘2,在进行进位的处理主要代码:void cif(int a[]){//进行乘2 for(int i=0;i<lena;i++){//先将每一位都乘2…… 题解列表 2023年07月15日 0 点赞 1 评论 742 浏览 评分:9.9
优质题解 编写题解 1003: [编程入门]密码破译,扩展使用字符函数解决问题 摘要:解题思路:一个C语言初学者的学习心得,在学习的过程,我们不应该单纯地看着某一道题来解决单一的问题,应该学会举一反三,思考一个通用规律,面向对象解决问题比面向结果解决问题更重要。下面,是我在探索关于字符…… 题解列表 2023年07月15日 5 点赞 2 评论 2415 浏览 评分:9.1
整数平均值 摘要:解题思路:不太标准,写着玩的。注意事项:参考代码:#include<iostream>using namespace std;int aver(int *p,int n){ int s=0; …… 题解列表 2023年07月15日 0 点赞 0 评论 372 浏览 评分:0.0
C++代码进行解题,思路可与C语言共享 摘要:解题思路:运用数组进行数据存储,遍历所有数组与每次参考的数组进行比较大小,再进行交换。注意事项:注意m的原数据重新覆盖#include <iostream>using namespace std;in…… 题解列表 2023年07月15日 0 点赞 0 评论 368 浏览 评分:0.0
[编程入门]字符串分类统计 摘要:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ char str[200]; int len,le…… 题解列表 2023年07月15日 0 点赞 0 评论 494 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, j, k, l; while (scanf("%d", &n) != EOF) …… 题解列表 2023年07月14日 0 点赞 0 评论 433 浏览 评分:0.0