2025/7/30刷题记录 摘要:解题思路:注意事项:ceil向上取整 最后结果取整参考代码:#include<stdio.h>#include<math.h>int main(){ …… 题解列表 2025年07月30日 0 点赞 0 评论 47 浏览 评分:0.0
2811 救援(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,b,c; double t1,t=0.0; s…… 题解列表 2024年03月18日 0 点赞 0 评论 256 浏览 评分:0.0
编写题解 2811: 救援 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #include <stdlib.h> // 计算时间的函数 floa…… 题解列表 2023年12月24日 0 点赞 0 评论 209 浏览 评分:0.0
救援(总时间) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,x,y,num; double distance; double t…… 题解列表 2023年11月19日 1 点赞 0 评论 173 浏览 评分:0.0
正常简单思路解答救援问题 摘要:解题思路:单趟时间相加对总时间向上取整注意事项:先相加再向上取整参考代码:#include<iostream>#include<math.h>#include<cmath>using namespac…… 题解列表 2024年05月05日 0 点赞 0 评论 248 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n; double sum_time = 0.0; s…… 题解列表 2023年05月30日 0 点赞 0 评论 219 浏览 评分:0.0
有稍微解释一下我的代码,但是没有说明数学逻辑 摘要:解题思路:注意事项:题目告诉我们的位置是在平面坐标系中的,所以我们要注意用距离公式【在c语言中,求a和b之间的距离x=sqrt(a*a+b*b)】去求大本营和某一个房顶之间的距离向上取整函数 ceil…… 题解列表 2024年11月07日 0 点赞 0 评论 221 浏览 评分:0.0
2811: 救援(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * n = int(input()) t0 = 0 while True: try: x,y,num=map(in…… 题解列表 2023年02月14日 0 点赞 0 评论 190 浏览 评分:0.0
用数学方法和for循环来解此题(ceil函数:向上取整,如6.5→7,且记得循环一次换行一次) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,N; double x,y,s,t; scan…… 题解列表 2024年11月26日 0 点赞 0 评论 249 浏览 评分:0.0
C++简单解法 摘要:解题思路:重要的是要有思路,题目不难,多试几次就能做出自己的正确答案注意事项:参考代码:#include<iostream>#include<math.h>using …… 题解列表 2025年04月06日 0 点赞 0 评论 168 浏览 评分:0.0