题解列表

筛选

采药 (C语言代码)

摘要:解题思路:01背包+动态规划  思想可以网上找注意事项:参考代码:#include <stdio.h>int max(int a,int b);int main(){ int T,M,i,j; int……

排列 (C++代码)

摘要:解题思路:注意事项:不用排序参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std;……
优质题解

Manchester-弗洛伊德最短路径算法

摘要:解题思路:  该算法需要知道其求解过程即可轻松写出代码,将下面的求解过程手动写一遍就可清晰知道代码执行过程,以下path[]用来记录两节点间的最短路径,对于这道题可以不管。注意事项:1):在下面的代码……

Minesweeper (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class A1096 { public static void main(String ar……