题目 1022: [编程入门]筛选N以内的素数—常规求解方法 摘要:解题思路:两个for循环注意事项:下一次循环时,需要对部分变量重置参考代码:#include<stdio.h> int main(void) { int N; scanf("%d", …… 题解列表 2022年10月23日 0 点赞 0 评论 338 浏览 评分:0.0
三个数字排序 摘要:解题思路:判断是否满足条件,不满足就一直循环注意事项:逻辑运算要括起来,不然只会读前一个部分了参考代码:#include<stdio.h>int main(){ int a,b,c; int t…… 题解列表 2022年10月23日 0 点赞 0 评论 317 浏览 评分:0.0
很简单的方法 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){int a=1,n=0,i=0;scanf ("%d",&n);for (;i<(n-1);i++){ a=(…… 题解列表 2022年10月23日 0 点赞 0 评论 385 浏览 评分:0.0
弱智版自定义函数之字符串反转 摘要:解题思路:第一种解法:先遍历得出字符数组中的字符个数,在用for循环将c[i]元素进行互换 ,比如c[3],c[0]与c[2]互换,c[1]位置不变 第二种解法:将字符串存入…… 题解列表 2022年10月23日 0 点赞 0 评论 368 浏览 评分:0.0
编写题解 1147: C语言训练-角谷猜想 摘要:```c #include int Guess(int a) { if (a == 1) return 1; else if (a % 2 == 0) { pri…… 题解列表 2022年10月23日 0 点赞 0 评论 415 浏览 评分:0.0
编写题解 1148: C语言训练-计算1977! 摘要:```c #include #define NUM 10000 #define N 100 int main() { int a[NUM]; int digit = 1; f…… 题解列表 2022年10月23日 0 点赞 0 评论 386 浏览 评分:0.0
求圆的面积 摘要:解题思路: 注意事项:注意要写#include<iomanip>头文件参考代码:#include<iostream>#include<iomanip>using namespace std;int m…… 题解列表 2022年10月23日 0 点赞 0 评论 413 浏览 评分:0.0
JAVA解三个数最大值 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2022年10月23日 0 点赞 0 评论 387 浏览 评分:0.0
密码破译JAVA 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2022年10月23日 0 点赞 0 评论 442 浏览 评分:0.0
编写题解 1055: 二级C语言-进制转换 摘要:```cpp #include #include using namespace std; int main() { stacks; int a; cin >> a; …… 题解列表 2022年10月24日 0 点赞 0 评论 348 浏览 评分:0.0