信息学奥赛一本通T1260-拦截导弹-动态规划 摘要:```cpp #include #include using namespace std; int a[1005],b[1005],dp1[1005],dp2[1005],n; void L…… 题解列表 2024年03月03日 0 点赞 0 评论 227 浏览 评分:0.0
编写题解 1861: 程序员爬楼梯 摘要:解题思路:类似于斐波那契数列不过递推公式为:F(n) = F(n -1) + F(n - 3)注意事项:参考代码:n = int(input())dp = [1, 1, 2, 3]#dp[i] 中 i…… 题解列表 2024年03月03日 0 点赞 0 评论 276 浏览 评分:0.0
累了,休息会 摘要:解题思路:注意事项:参考代码: #include<bits/stdc++.h> using nam…… 题解列表 2024年03月03日 0 点赞 0 评论 281 浏览 评分:9.9
使用Java的BigInteger类迅速解决整除问题 摘要:BigInteger 类是java提供的用于大整数(可以超过long类型范围)计算的类 构造方法:public BigInteger(String val) 获取指定的大整数 常用方法…… 题解列表 2024年03月03日 0 点赞 0 评论 419 浏览 评分:9.9
【C语言题解】蓝桥杯2023年第十四届省赛真题-更小的数 摘要:``` #include //定义数组来存放数的每一位 int number[50050]={0}; int compare (int *a,int *b); int main(){ …… 题解列表 2024年03月03日 0 点赞 0 评论 300 浏览 评分:0.0
愤怒的牛,二分解法 摘要:# 题目 2346: 信息学奥赛一本通T1433-愤怒的牛 **农夫 John 建造了一座很长的畜栏,它包括N(2≤N≤100,000)个隔间,这些小隔间依次编号为x1,...,xN(0≤xi≤…… 题解列表 2024年03月03日 0 点赞 0 评论 622 浏览 评分:9.5
1068: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:def ctof(i): print('c=%d->f=%d'%(i,32 + i* 9/5))for i in range(-100,151,5)…… 题解列表 2024年03月03日 0 点赞 0 评论 646 浏览 评分:0.0
链表之报数问题(C语言代码) 摘要:#include<stdio.h>#include<malloc.h>typedef struct people{ int number; struct people *next;}ST;…… 题解列表 2024年03月03日 1 点赞 0 评论 234 浏览 评分:0.0
1036: [编程入门]带参数宏定义练习 摘要:解题思路:定义一个带参的宏,使两个参数的值互换,并写出程序,输入两个数作为使用宏时的实参。参考代码:#include <stdlib.h> #include <stdio.h> #define…… 题解列表 2024年03月03日 0 点赞 0 评论 230 浏览 评分:0.0
三国游戏-简单易看懂 摘要:解题思路:将胜国每个事件发生时相对于其他两国的兵力增量记录并排序,只要他的事件增量大于0,那么这个事件就可以发生,最后从三个国家获胜情况中找到最大的事件数即可注意事项:参考代码:#include<bi…… 题解列表 2024年03月03日 2 点赞 0 评论 879 浏览 评分:9.3