上车人数 (C语言代码)懒人的穷举法 摘要:#include <stdio.h> int main() { int a,n,m,x; scanf("%d %d %d %d",&a,&n,&m,&x); int …… 题解列表 2019年02月28日 2 点赞 1 评论 543 浏览 评分:0.0
题解 1179: 上车人数 摘要:参考代码:#include <stdio.h>#include <stdlib.h>#include<math.h>int main(){ int a,n,m,x; scanf("%d%d…… 题解列表 2021年05月06日 0 点赞 0 评论 369 浏览 评分:0.0
编写题解 1179: 上车人数 摘要:解题思路:注意事项:参考代码:a,n,m,x=map(int,input().split()) up=[a] def get(a,x,z): up=[a,x] down=[0,…… 题解列表 2022年02月18日 0 点赞 0 评论 496 浏览 评分:0.0
上车人数-题解(C++代码) 摘要:# 递推  ```cpp #include #include #include #inc…… 题解列表 2020年02月16日 0 点赞 0 评论 739 浏览 评分:0.0
上车人数(模拟 + 递推) 摘要:解题思路:递推系数规律, 计算第二站上下车人数, 按照递推公式计算第x站人数注意事项:第n站下车的人数是第n-1站出发时的人数参考代码:#include<iostream>#inclu…… 题解列表 2025年01月21日 0 点赞 0 评论 281 浏览 评分:0.0
穷举法,注意边界的细节问题 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[…… 题解列表 2024年03月13日 0 点赞 0 评论 325 浏览 评分:0.0
平行数组+递推 摘要:1.实在是不会找规律哈但是会模拟递归过程 反正计算是编译器的问题 关我程序设计什么事2.嵌套递归 具体表现是 n>=3:(1) An=A(n-1)+(up)A(n-2)(up这里表示上车人…… 题解列表 2025年04月06日 0 点赞 0 评论 231 浏览 评分:0.0
上车人数 (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;//注:第二站虽然上车下车人数相等,但上车人数为x不确定,并非是0public class A1179上车人数 { pu…… 题解列表 2018年08月12日 0 点赞 0 评论 1090 浏览 评分:0.0
上车人数 (C语言代码) 摘要:解题思路:从第二站开始,就需要知道上车人数,由题目得知:第二站一定有人上下车,由于上一站上了a个人,那么第二站最多下车人数是a,由于第二站的下车人数与上车人数相等,那么第二站上车人数的范围应该在1到a…… 题解列表 2018年07月29日 2 点赞 0 评论 1461 浏览 评分:0.0