题解列表

筛选

开关灯的详细解答

摘要:#include<stdio.h>int main(){ int m,n,i,j; scanf("%d %d",&n,&m); //输出顺序不能错  int a[n+1]; /*第一个人的行为*/ f……

Python求解背包问题

摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())w=[0]*(n+1)v=[0]*(n+1)for i in range(1,n+1):    w[i],v[i]……

字符串逆序输出(C语言)

摘要:两种方法: 法一:字符串数组 冒泡排序法 #include<stdio.h> #include<stdlib.h> void sort_bubble(char arr[], int len) ……

Python解决-动态规划

摘要:解题思路:注意事项:参考代码:V = int(input())n = int(input())dp = [0]*(V+1)c = [0]*(n+1)for i in range(1, n+1):   ……

2852: 配对碱基链 水题解

摘要:解题思路: A变T, C变G注意事项:参考代码:#include <iostream> // #include <sstream> // #include <cstdio> // #includ……