题解列表

筛选

2848题: 基因相关性

摘要:参考代码:                Scanner sc=new Scanner(System.in); double n = sc.nextDouble(); String x =……

题解 2810: 鸡尾酒疗法

摘要:参考代码:a=int(input())b=[]for i in range(1,a+1):    x,y=map(int,input().split())    if i<=1:        c=y……

自定义函数之数字后移

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {static Scanner sc=new Scanner(System.in);……

还是畅通工程

摘要:解题思路:最小生成树模版题注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; struct node { ……

线性动态规划c++版

摘要:解题思路:简单的线性规划前i个字符的最大松散值=max(算上第i个,不算第i个)算上第i个=前i-2个字符的最大松散值+i的权重不算第i个=前i-1个字符的最大松散值注意事项:参考代码:#includ……

猴子选大王(报数问题)

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