码迷,mamicode.com
首页 >  
搜索关键字:uva 11361    ( 8022个结果
UVA 11624 Fire
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2671 题目大意:迷宫里有几个地方失火了,小J要赶快出去,出口就是迷宫的没有障碍物的边界地方,但 ...
分类:其他好文   时间:2017-08-11 20:32:32    阅读次数:154
Uva 816 Abbott's Revenge(BFS)
#include<cstdio>#include<cstring>#include<vector>#include<queue>using namespace std; struct Node{ int row,col,dir; Node(int row=0,int col=0,int dir=0) ...
分类:其他好文   时间:2017-08-11 17:23:26    阅读次数:180
[拓扑排序]Ordering Tasks UVA - 10305
拓扑排序模版题型: John has n tasks to do.Unfortunately, the tasks are not independent and the execution of one task is only possible if other tasks have alrea ...
分类:编程语言   时间:2017-08-11 10:34:32    阅读次数:201
uva-11044-水题
#include #include #include using namespace std; int main() { freopen("d:\\1.txt", "r", stdin); int t; cin >> t; int r, c; while (t--) { cin >> r >> c;... ...
分类:其他好文   时间:2017-08-10 22:42:03    阅读次数:110
UVA - 1533 - Moving Pegs
题目链接:UVA-1533 题目大意: 有一个棋盘如下,黑色表示有棋子,白色表示空,棋盘初始状态为有一个位置n为空,其他位置都有棋子。 每次可以选择一个棋子在一条直线上隔一个或连续多个棋子跳到空白位置,然后这一个或多个棋子就被拿走,问最少几步可以使棋盘上的棋子拿走到只剩下一个且位置和初始空白位置相同 ...
分类:其他好文   时间:2017-08-10 22:27:16    阅读次数:121
Uva 10446
UVa 10446 求(n,bcak)递归次数。自己推出来了一个式子: 其实就是这个式子,但是不知道该怎么写,怕递归写法超时。其实直接递推就好,边界条件易得C(0,back)=1、C(1,back)=1。 Reference Code: Reference Blog:http://knightzon ...
分类:其他好文   时间:2017-08-10 17:07:27    阅读次数:112
UVA - 10591 Happy Number
Happy Number UVA - 10591 Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the s ...
分类:移动开发   时间:2017-08-10 17:04:00    阅读次数:240
uva 10891 区间dp+记忆化搜索
https://vjudge.net/problem/UVA-10891 给定一个序列x,A和B依次取数,规则是每次只能从头或者尾部取走若干个数,A和B采取的策略使得自己取出的数尽量和最大,A是先手,求最后A-B的得分。 令 f(i,j)表示对于[i,j]对应的序列,先手可以从中获得的最大得分,那么 ...
分类:其他好文   时间:2017-08-10 15:09:38    阅读次数:183
UVA10917 Walk Through the Forest
题意:一个人从A到B,只能走这样的边回家,起点到B的距离比终点到B的距离更短,问有几条路径能回家 ...
分类:其他好文   时间:2017-08-09 13:08:53    阅读次数:121
UVA - 725
https://odzkskevi.qnssl.com/8b9d8bb43198f28efe782047d56ab361?v=1501987995 ...
分类:其他好文   时间:2017-08-09 13:08:03    阅读次数:99
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!