[编程入门]筛选N以内的素数 摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type…… 题解列表 2024年11月17日 1 点赞 0 评论 573 浏览 评分:0.0
会1就看我这个,看我注释修改进行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[20]; int i, j, min, temp; for (i =…… 题解列表 2024年11月17日 0 点赞 0 评论 575 浏览 评分:9.9
编写题解 2797: 最高的分数 摘要: #include int main() { int n,a[100],k=0; scanf("%d", &n); for (int q …… 题解列表 2024年11月17日 1 点赞 0 评论 499 浏览 评分:10.0
编写题解 1084: 用筛法求之N内的素数 摘要: #include int main() { int n,c=0; scanf("%d",&n); //输入n for (in…… 题解列表 2024年11月16日 0 点赞 0 评论 690 浏览 评分:10.0
刷题是熟练的必经之路 摘要:解题思路:多看几遍就记住了注意事项:参考代码:#include<stdio.h>#include<stdbool.h>#include<math.h>bool judge(int n);int mai…… 题解列表 2024年11月16日 1 点赞 0 评论 534 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double y; int x; scanf ("%d",&x); if (x < 1) { y = x;…… 题解列表 2024年11月16日 0 点赞 0 评论 992 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void GetReal(float*a){ printf ("please input a number:\n"); scanf ("…… 题解列表 2024年11月16日 0 点赞 0 评论 647 浏览 评分:0.0
普通解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int a[10]; double sum = 0; float b[10]…… 题解列表 2024年11月16日 0 点赞 0 评论 569 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ char a; scanf("%c",&a); int b = (int)a; if ( b % 2 != 0…… 题解列表 2024年11月16日 0 点赞 0 评论 590 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int a; scanf("%d",&a); if (a >= 0 && a % 2 != 0) print…… 题解列表 2024年11月16日 0 点赞 0 评论 1038 浏览 评分:0.0