Problem Description
In the shooting game, the player can choose to stand in the position of [1, X] to shoot, you can shoot all the nearest K targets. The value of K may be different on different shoo...
分类:
其他好文 时间:
2014-07-26 15:08:00
阅读次数:
383
A - 卡特兰数
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
This is a small but ancient game. You are supposed to write down the num...
分类:
其他好文 时间:
2014-07-26 15:07:50
阅读次数:
216
A.Game With Sticks 就发现选定一个点之后,会删除相应的行列,即n-1,m-1,所以只需要看min(n,m)是基是偶#include #include #include using namespace std;int n, m;int main(){#ifdef LOCAL ...
分类:
其他好文 时间:
2014-07-26 14:00:25
阅读次数:
226
Motion(http://www.lavrsen.dk/foswiki/bin/view/Motion/)是一款小巧、轻型但又功能强大的应用软件,可以用来在Linux上操控监控摄像头。它能够与任何支持Linux的摄像头协同运行,包括所有的V4L网络摄像头、许多IP摄像头以及安迅士(Axis)摄像头,它还可以控制平移和倾斜功能..
分类:
系统相关 时间:
2014-07-26 03:27:28
阅读次数:
428
其实就会找出xy最小的一个,再判断奇偶就OK
#include
#include
using namespace std;
int main(){
int x,y;
while(cin>>x>>y){
int t=x>y?y:x;
if(t%2==0)
printf("Malvika\n");
...
分类:
其他好文 时间:
2014-07-26 03:02:56
阅读次数:
197
链接:http://poj.org/problem?id=1753
题意:一个4*4的方格,有白棋或者黑棋,每次操作是一个位置的颜色翻转,即白变黑、黑变白,并且与它相邻的四个位置的颜色也都跟着改变,问最少要变化多少次才能使所有棋子都是白色或者都是黑色。
思路:不难看出一个棋子翻偶数次和不翻的效果是一样的,并且如果选定了一些棋子翻,翻的顺序对最后的结果是没有影响的,所以可以用DFS去枚举...
分类:
其他好文 时间:
2014-07-26 02:53:46
阅读次数:
221
A:Game With Sticks
水题。。。每次操作,都会拿走一个横行,一个竖行。
所以一共会操作min(横行,竖行)次。
#include
#include
#include
#include
#include
#include
#include
#include
#pragma comment(linker, "/STACK:1024000000,1024000000")
using...
分类:
其他好文 时间:
2014-07-26 02:44:06
阅读次数:
278
题目:uva10400 - Game Show Math(回溯+剪枝)
题目大意:给出N个数,并且给出一个目标数值,要求用上面的数字(全部),并且顺序不能乱,然后用+-*/这些操作,问最终能不能得到目标数值。这里要注意给出的数会在【-32000,32000】之间, 并且要用除法的时候,只有在能整除的时候才能用。并且中间计算结果不能超过【-32000,32000】范围。如果超过这个操作不能...
分类:
其他好文 时间:
2014-07-26 02:30:46
阅读次数:
202
Codeforces Round #258 (Div. 2)[ABCD]
ACM
题目地址:Codeforces Round #258 (Div. 2)
A - Game With Sticks
题意:
Akshat and Malvika两人玩一个游戏,横竖n,m根木棒排成#型,每次取走一个交点,交点相关的横竖两条木棒要去掉,Akshat先手,给出n,m问谁赢...
分类:
其他好文 时间:
2014-07-26 02:28:56
阅读次数:
233
Brave Game
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 6329 Accepted Submission(s): 4229
Problem Description
十年前读大学的时候,中国每年都...
分类:
其他好文 时间:
2014-07-26 02:26:37
阅读次数:
140