发表评论取消回复
相关阅读
相关 LeetCode(Array)1431. Kids With the Greatest Number of Candies
1.问题 There are n kids with candies. You are given an integer array candies, where eac
相关 POJ 3083
include <stdio.h> include <memory.h> const int maxn=40+10; int visit[max
相关 POJ3083--Children of the Candy Corn
做此题时先是题意未理解透,一直有点摸不着头脑;而后搞懂题意了却被有方向的深搜搞的有点不知如何下手,想来想去找不到方法,就在网上找了找,最终写出来了,不过bfs()的行列搞错了,
相关 pku 1887 Test The CATCHER
\include <iostream> \include <algorithm> using namespace std; int map\[10005\]; int MaxL
相关 pku 3267 The Cow Lexicon
\include <iostream> \include <string> using namespace std; int v\[302\]; char s\[600\]\[
相关 pku 3083 Children of the Candy Corn DFS+BFS
两次dfs,一次bfs,貌似数据不是很大0ms过. 不过这一题相当于几道题,代码写的挺长... 难点在于dfs时的走向向判断问题, 我采用的方法是: 方向left, up
相关 pku 3601 Tower of Hanoi
\include <stdio.h> int m\[110\],F\[110\], G\[110\]; int main() \{ int i, N, M; while(sca
相关 CF1063D Candies for Children
[CF1063D Candies for Children][CF1063D_Candies for Children] 分类讨论题 n<=1e11, 整体上先分n<=
相关 Children of the Candy Corn 深搜 广搜 很经典 对queue的认识又增加一份
Problem Description The cornfield maze is a popular Halloween treat. Visitors are shown
相关 POJ 3083 Children of the Candy Corn【广搜+深搜】
Description The cornfield maze is a popular Halloween treat. Visitors are shown the ent
还没有评论,来说两句吧...