题解列表

筛选

【Python题解】程序员爬楼梯

摘要:解题思路:简单的动态规划。参考代码:n = int(input()) dp = [1 for i in range(n+1)]     # 边界条件:dp[0]=dp[1]=dp[2]=1 fo……

收集瓶盖赢大奖

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int n,m;      scanf("%d%d",&n,&m);      if(n>=10 ||……

晶晶赴约会

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){      int n;      scanf("%d",&n);      if(n==1||n==3||n==……

骑车与走路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int n;     double s1,s2;     scanf("%d",&n);     s1=……

分段函数(c语言)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){      if(x>=0 && x<5)      {           return -……

C++简便易懂

摘要:# 其实这题直接点提交就行了 ``` #include using namespace std; int main() { int a,b; while(cin>>a>>……

作业调度方案(垃圾版)

摘要:解题思路:基本思路就是使用矩阵模拟出各机器的时间线,按照给定的总工件顺序,参照各工件单独的加工顺序与加工时间填写矩阵,最终输出最长的矩阵。我写的很烂,方法很笨,但是看到没人提交python代码,然后自……