- 博客(3)
- 收藏
- 关注
原创 [HDU1004] Let the balloon rise - 让气球升起来
[HDU1004] Let the balloon rise - 让气球升起来Problem DescriptionContest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges’ favorite time is guessing the most popular problem. When the contest is over, they will
2020-12-13 21:09:31
594
原创 深度搜索入门题n皇后问题
深度搜索入门题n皇后问题问题描述:要在n*n的国际象棋棋盘中放n个皇后,使任意两个皇后都不能互相吃掉。规则是皇后能吃掉同一行、同一列、同一对角线的棋子。(即不能放置在有被吃危险的位置)Input:一个整数nOuput:Q种放置方法下每种方法所对应n个皇后的具体坐标和Q的值Sample Input:1Sample Output:<1,1> 1先贴一下代码,再浅谈思路。#include<stdio.h>#include<string.h>#include&
2020-12-09 11:28:53
550
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人