2017 WHUWT Day1 (Div. 2) (dfs+bfs //待更新C
2017-02-13 23:37
274 查看
题目链接 https://vjudge.net/contest/149928
A poj1979
从@点开始 最多能走多少个'.'
dfs
WA 1 自己第一次写的时候忘记加 tiles[new_h][new_w]=='.'
EXP 1 main内部注意不能再次定义全局变量( w h
EXP 2 这种上下左右移动的可以定义全局数组 int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}};方便操作。
B poj3009
从S移动到G 通过移动后碰撞墙壁可以使墙壁消失(更新地图 PS紧挨墙壁无法向墙壁移动故不能往那边走啦QAQ
问最少操作次数 dfs (bfs的时候因为碰撞更新并发会相互影响???
EXP 1 注意回溯的写法= =
C poj3669
bfs
流星撞地球 M个在Ti撞击到(Xi,Yi) (撞击点有范围故人物不在撞击点范围内亦可但必须第一象限 撞击后撞击点及相邻四个点均不能走
人物初始位置在原点 单位时间只能上下左右走一步 不能对角移动
A poj1979
从@点开始 最多能走多少个'.'
dfs
WA 1 自己第一次写的时候忘记加 tiles[new_h][new_w]=='.'
EXP 1 main内部注意不能再次定义全局变量( w h
EXP 2 这种上下左右移动的可以定义全局数组 int dir[4][2]={{1,0},{-1,0},{0,1},{0,-1}};方便操作。
B poj3009
从S移动到G 通过移动后碰撞墙壁可以使墙壁消失(更新地图 PS紧挨墙壁无法向墙壁移动故不能往那边走啦QAQ
问最少操作次数 dfs (bfs的时候因为碰撞更新并发会相互影响???
EXP 1 注意回溯的写法= =
C poj3669
bfs
流星撞地球 M个在Ti撞击到(Xi,Yi) (撞击点有范围故人物不在撞击点范围内亦可但必须第一象限 撞击后撞击点及相邻四个点均不能走
人物初始位置在原点 单位时间只能上下左右走一步 不能对角移动
相关文章推荐
- Codeforces Round #432 (Div. 2, based on IndiaHacks Final Round 2017) B
- 【找规律】Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) B. Code For 1
- ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined)A+B
- Technocup 2017 - Elimination Round 1 (Unofficially Open for Everyone, Rated for Div. 2) C
- Codeforces Round #403 (Div. 2, based on Technocup 2017 Finals) B.(三分)
- 2017/8/3训练日记(DFS&&Codeforces Round #418 (Div. 2))
- Codeforces Round #380 (Div. 2,Based on Technocup 2017 - Elimination Round 2)C - Road to Cine//
- 【解题报告】Codeforces Round #380 (Div. 2, Rated, Based on Technocup 2017 - Elimination Round 2)
- 2017-2018 ACM-ICPC Southeast Regional Contest (Div. 1) F.Move Away 几何
- 2017-2018 ACM-ICPC Southeast Regional Contest (Div. 1) J.Treasure Map dp
- 2017暑假集训 div1 最短路(1)
- VK Cup 2017 B. Volatile Kite (Div . 1)(凸多边形退化)(计算几何)
- 2017暑假集训 div1 并查集(1)
- Codeforces Round #432 (Div. 2, based on IndiaHacks Final Round 2017) C
- 2017 WHUWT Day3 (Div. 2) (贪心 DP //待更新
- ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) A
- 【基数排序】Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) C. Jon Snow and his Favourite Number
- Divide by Zero 2017 and Codeforces Round #399 (Div. 1 + Div. 2, combined) A B 水 搜索
- 【枚举】【前缀和】【map】ICM Technex 2017 and Codeforces Round #400 (Div. 1 + Div. 2, combined) C. Molly's Chemicals
- Technocup 2017 - Elimination Round 1 (Unofficially Open for Everyone, Rated for Div. 2) D