【Python题解】程序员爬楼梯 摘要:解题思路:简单的动态规划。参考代码:n = int(input()) dp = [1 for i in range(n+1)] # 边界条件:dp[0]=dp[1]=dp[2]=1 fo…… 题解列表 2023年01月14日 0 点赞 0 评论 335 浏览 评分:9.9
判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long n; scanf("%lld",&n); if(n%3==0 && n%…… 题解列表 2023年01月14日 0 点赞 0 评论 454 浏览 评分:0.0
收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m; scanf("%d%d",&n,&m); if(n>=10 ||…… 题解列表 2023年01月14日 0 点赞 0 评论 385 浏览 评分:0.0
晶晶赴约会 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); if(n==1||n==3||n==…… 题解列表 2023年01月14日 0 点赞 0 评论 331 浏览 评分:3.0
骑车与走路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double s1,s2; scanf("%d",&n); s1=…… 题解列表 2023年01月14日 0 点赞 0 评论 350 浏览 评分:0.0
分段函数(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){ if(x>=0 && x<5) { return -…… 题解列表 2023年01月14日 0 点赞 0 评论 451 浏览 评分:7.3
C++简便易懂 摘要:# 其实这题直接点提交就行了 ``` #include using namespace std; int main() { int a,b; while(cin>>a>>…… 题解列表 2023年01月14日 0 点赞 0 评论 428 浏览 评分:9.9
从大到小的顺序输出其中前m大的数 摘要:解题思路:注意事项:参考代码:n,m = map(int,input().split())L = list(map(int,input().split()))L.sort(reverse = True…… 题解列表 2023年01月14日 0 点赞 0 评论 362 浏览 评分:0.0
作业调度方案(垃圾版) 摘要:解题思路:基本思路就是使用矩阵模拟出各机器的时间线,按照给定的总工件顺序,参照各工件单独的加工顺序与加工时间填写矩阵,最终输出最长的矩阵。我写的很烂,方法很笨,但是看到没人提交python代码,然后自…… 题解列表 2023年01月14日 0 点赞 0 评论 453 浏览 评分:4.0
编写题解 1046: [编程入门]自定义函数之数字后移 适合新手 摘要:解题思路:定义两个数组,一个用来接收改变后的排序,(m+i)%n 这个是核心 保证数组末尾的下一位是首位!!!注意事项:参考代码:#include<iostream>#include<cstri…… 题解列表 2023年01月14日 0 点赞 0 评论 345 浏览 评分:0.0