数字的处理与判断 摘要:解题思路:数字的处理与判断注意事项:第二行代码最后一个数字后面没有空格;用临时变量来代替输入的数,否则输入的数会变参考代码:#include<stdio.h>#include<math.h>int m…… 题解列表 2023年04月18日 0 点赞 0 评论 522 浏览 评分:9.9
死在精度上面 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int k,i=1; double sn=0.0;\\float类型超过了精度,答案输出错误 scanf("…… 题解列表 2023年04月18日 0 点赞 0 评论 534 浏览 评分:0.0
最小曼哈顿距离 解题思路:首先可以发现,要使得所有点到一个点的曼哈顿距离之和最小,这个点必然是所有点的中心点。因此,我们只需要枚举所有可能的中心点,计算每个中心点到所有点的曼哈顿距离之和,取最小值即可。具体实现时,我们可以先找到所有点的最大横坐标、最小横坐标、最大纵坐标、最小纵坐标, 题解列表 2023年04月18日 0 点赞 0 评论 1418 浏览 评分:5.3
留给下一位 摘要:解题思路:注意病人需求超过库存,则拒绝取药,留给下个人注意事项:参考代码:#include<stdio.h>int main(){ int m, n; int x,count=0; …… 题解列表 2023年04月18日 0 点赞 0 评论 620 浏览 评分:9.9
1062: 二级C语言-公约公倍 摘要:参考代码:#include <stdio.h>int main(){ int m, n; scanf("%d %d", &m,&n); int gysf(int m,int n); …… 题解列表 2023年04月18日 0 点赞 0 评论 695 浏览 评分:0.0
1018: [编程入门]有规律的数列求和<1> 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d",&n); float summ(float n); …… 题解列表 2023年04月18日 0 点赞 0 评论 395 浏览 评分:0.0
1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://辗转相除法#include <stdio.h>int main() { int m, n; scanf("%d %d", &m, &n); int …… 题解列表 2023年04月18日 0 点赞 0 评论 605 浏览 评分:0.0
1009: [编程入门]数字的处理与判断<1> 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, num, a[5], count; scanf("%d",&n); if (…… 题解列表 2023年04月18日 0 点赞 0 评论 425 浏览 评分:0.0
1043: [编程入门]三个数字的排序<1> 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int a, b, c, Max, Mid, Min; scanf("%d %d %d",…… 题解列表 2023年04月18日 0 点赞 0 评论 530 浏览 评分:0.0
津津的储蓄计划 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int money=0,month=1,ys,count=0; for(int i=1;i<13;i…… 题解列表 2023年04月17日 0 点赞 0 评论 477 浏览 评分:0.0