2791: 计算邮资 摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc…… 题解列表 2024年11月17日 1 点赞 0 评论 802 浏览 评分:9.9
[编程入门]筛选N以内的素数 摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type…… 题解列表 2024年11月17日 1 点赞 0 评论 518 浏览 评分:0.0
会1就看我这个,看我注释修改进行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[20]; int i, j, min, temp; for (i =…… 题解列表 2024年11月17日 0 点赞 0 评论 523 浏览 评分:9.9
编写题解 2797: 最高的分数 摘要: #include int main() { int n,a[100],k=0; scanf("%d", &n); for (int q …… 题解列表 2024年11月17日 1 点赞 0 评论 459 浏览 评分:10.0
编写题解 1084: 用筛法求之N内的素数 摘要: #include int main() { int n,c=0; scanf("%d",&n); //输入n for (in…… 题解列表 2024年11月16日 0 点赞 0 评论 642 浏览 评分:10.0
刷题是熟练的必经之路 摘要:解题思路:多看几遍就记住了注意事项:参考代码:#include<stdio.h>#include<stdbool.h>#include<math.h>bool judge(int n);int mai…… 题解列表 2024年11月16日 1 点赞 0 评论 489 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double y; int x; scanf ("%d",&x); if (x < 1) { y = x;…… 题解列表 2024年11月16日 0 点赞 0 评论 930 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void GetReal(float*a){ printf ("please input a number:\n"); scanf ("…… 题解列表 2024年11月16日 0 点赞 0 评论 603 浏览 评分:0.0
普通解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int a[10]; double sum = 0; float b[10]…… 题解列表 2024年11月16日 0 点赞 0 评论 514 浏览 评分: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 评论 539 浏览 评分:0.0