
ACM搜索
xiaoshengMr
Inner speace
展开
-
POJ 1321 棋盘问题 (DFS)
#include<stdio.h>#include<string.h>#include<iostream>#include<algorithm>using namespace std;int n,m;char s[10][10];int vis[10];int tot,cont;void dfs(int ans){ if(cont==m) { to原创 2017-12-12 11:28:13 · 223 阅读 · 0 评论 -
HDU-1495 非常可乐(BFS)+数论求解
非常可乐Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 17971 Accepted Submission(s): 7293Problem Description大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么原创 2017-12-12 14:47:18 · 731 阅读 · 0 评论 -
POJ - 3278-Catch That Cow(BFS)
Catch That CowTime Limit: 2000MS Memory Limit: 65536K Total Submissions: 101593 Accepted: 31754DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch原创 2017-12-12 16:22:12 · 175 阅读 · 0 评论 -
POJ 3279 Fliptile(开关问题)
FliptileTime Limit: 2000MS Memory Limit: 65536K Total Submissions: 12908 Accepted: 4739DescriptionFarmer John knows that an intellectually satisfied cow is a happy cow who will give more m原创 2017-12-13 19:55:43 · 217 阅读 · 0 评论 -
POJ-1426-Find The Multiple (BFS +DFS)两种解法
Find The MultipleTime Limit: 1000MS Memory Limit: 10000K Total Submissions: 35878 Accepted: 14986 Special JudgeDescriptionGiven a positive integer n, write a program to find out a nonz原创 2017-12-14 15:00:58 · 312 阅读 · 0 评论