
回溯法
文章平均质量分 81
Fly_Eason
脚踏实地,破茧成蝶。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU2553
#include #include using namespace std; int column[20]; // int rup[20]; int lup[20]; int ans[11]; int num=0; int N; void backtrack(int i); //定义一种方法 其实是回溯法 int main() { int i=0; for (int j=1原创 2016-10-28 23:11:20 · 593 阅读 · 0 评论 -
HDU1016 素数环
A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of fi...原创 2018-03-27 14:06:09 · 327 阅读 · 0 评论 -
HDU1241油田
static int n; static int m; static char str[][] = new char[101][101]; static int count; public static void main(String[] args) { Scanner cin = new Scanner(System.in); while(cin.hasNextInt()){ ...原创 2018-03-27 17:22:28 · 431 阅读 · 0 评论