题解列表

筛选

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……

斐波纳契数列(C语言)

摘要:#include<stdio.h> int main() { int fib[40] = { 1,1 }; int N; scanf("%d", &N); for (int i =……

题解 1798: 汪汪与打针(C)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int m(int a,int b)   //计数函数{    int i,x=120,s=a;   //i是最后的次数,x是本次的花费……

日期排序 冒泡排序加结构体

摘要:解题思路:注意事项:输出时%02d补齐0,否则左侧只会输出2不会输出02参考代码:#include<stdio.h>struct date{    int y;    int m;    int d;……