用数学方法和for循环来解此题(ceil函数:向上取整,如6.5→7,且记得循环一次换行一次)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,n,N; double x,y,s,t; scan……
有稍微解释一下我的代码,但是没有说明数学逻辑
摘要:解题思路:注意事项:题目告诉我们的位置是在平面坐标系中的,所以我们要注意用距离公式【在c语言中,求a和b之间的距离x=sqrt(a*a+b*b)】去求大本营和某一个房顶之间的距离向上取整函数 ceil……
2811: 救援(Python)
摘要:解题思路:注意事项:参考代码:from decimal import *
n = int(input())
t0 = 0
while True:
try:
x,y,num=map(in……
正常简单思路解答救援问题
摘要:解题思路:单趟时间相加对总时间向上取整注意事项:先相加再向上取整参考代码:#include<iostream>#include<math.h>#include<cmath>using namespac……
2811 救援(C语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,a,b,c; double t1,t=0.0; s……
编写题解 2811: 救援
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <math.h>
#include <stdlib.h>
// 计算时间的函数 floa……
多维数组要知道下标索引是什么样的
摘要:解题思路:一般用一重循环也就可以啦注意事项:00 01 02 10 11 1220 21 22参考代码:import mathn=int(input())li=[]for i in range(n):……