多维数组要知道下标索引是什么样的 摘要:解题思路:一般用一重循环也就可以啦注意事项:00 01 02 10 11 1220 21 22参考代码:import mathn=int(input())li=[]for i in range(n):…… 题解列表 2022年10月10日 0 点赞 0 评论 305 浏览 评分:2.0
题解 2811: 救援 摘要:解题思路:注意事项:参考代码:import math # 调用数学模块 t = 0 n = int(input()) #屋顶数 for i in range(n): a = …… 题解列表 2023年02月09日 0 点赞 0 评论 362 浏览 评分:6.0
救援C++ 简单易懂,欢迎点评 摘要:解题思路:注意事项: ceil()为向上取整函数参考代码:#include<bits/stdc++.h>#include<cmath>using namespace std;int main(){ …… 题解列表 2023年03月22日 0 点赞 0 评论 535 浏览 评分:7.7
JAVA的简单解法 摘要:解题思路:注意事项:主要注意要使用Math.ceil()向上取整参考代码:import java.util.Scanner;public class Main { public static v…… 题解列表 2023年11月05日 0 点赞 0 评论 332 浏览 评分:9.0
对题2811:数学表达式的使用以及四舍五入的实现 摘要:解题思路:本题需要输入n组数据,便可以采用一个while(n)的循环来依次输入多个救援点的坐标以及救援人数,再写出每次救援时间的数学表达式,带入计算即可,再对计算结果进行四舍五入输出注意事项:对应的数…… 题解列表 2024年09月08日 0 点赞 0 评论 333 浏览 评分:9.9
救援(java代码) 摘要:解题思路:注意事项: Math.sqrt()方法用于求算术平方根 Math.ceil()向上取整 扩展: Math.round()四舍五人的整数 Math.floor()向下取整参考代码:impo…… 题解列表 2023年11月08日 0 点赞 0 评论 314 浏览 评分:9.9
python 2811: 救援 摘要:参考代码:import math n = int(input()) x1, y1 = 0, 0 pace = 50 time = 0 for i in range(n): xn, …… 题解列表 2024年03月13日 0 点赞 0 评论 585 浏览 评分:9.9
海底小纵队在线救援 摘要:解题思路:从头理清慢慢算注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanner …… 题解列表 2024年01月15日 0 点赞 0 评论 258 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月12日 0 点赞 0 评论 167 浏览 评分:9.9
2811: 救援(C语言,重点就是向上取整用ceil()函数,不然的话就会报错) 摘要: #include #include int main() { int n; // 屋顶数 int x, y; // 坐标 int num; // 人数…… 题解列表 2023年07月08日 0 点赞 0 评论 392 浏览 评分:9.9