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