码迷,mamicode.com
首页 >  
搜索关键字:chess queen    ( 565个结果
CodeForces 384A Coder
CoderTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 384ADescriptionIahub likes chess very much. He ...
分类:其他好文   时间:2015-08-30 20:57:28    阅读次数:141
NBUT 1451 Elise (map +并查集)
[1451] Elise 时间限制: 1000 ms 内存限制: 65535 K 问题描述 Elise is the Spider Queen. She has a skill, Spider Form(蜘蛛形态). When she transformed to the spider, there will be some small spiders arou...
分类:其他好文   时间:2015-08-25 23:46:02    阅读次数:238
009-打印棋盘
# -*- coding:cp936 -*-def chess(): """ 题目:要求输出国际象棋棋盘。 程序分析:用i控制行,j来控制列,根据i+j的和的变化来控制输出黑方格,还是白方格。 注意:print的换行 """ for i in range(0,8)...
分类:其他好文   时间:2015-08-25 23:18:01    阅读次数:155
POJ 1364 King(非连通图的差分约束,经典好题)
King Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 11103   Accepted: 4068 Description Once, in one kingdom, there was a queen and that queen was expecting ...
分类:其他好文   时间:2015-08-21 01:52:14    阅读次数:331
八皇后问题java实现
八皇后问题java实现 public class eightqueen { public static int count=0; public static void main(String[] args) { int chess[][]=new int [8][8]; search(chess,0,8); } static void search(int che...
分类:编程语言   时间:2015-08-20 13:12:02    阅读次数:185
HDU 4405-Aeroplane chess(概率dp)
题意:n+1格飞行棋,编号0-n,从0格开始,每次扔一个色子,得到的点数就向前走几步,但有有些格子到达后可以直接飞到后面的格子,当到达>=n的地方结束,求结束扔色子的期望次数。分析:dp[i]表示i格到结束需要的期望次数,dp[n]-dp[n+5]是0,dp[0]即为所求,先处理直接飞的情况#inc...
分类:其他好文   时间:2015-08-17 23:18:12    阅读次数:133
[题解+总结]20150815
1、前言水考一次。。。。主题是搜索,去年11月考过一次,当时只有200多分。这也算是最近考试中极其简单的一次了吧,只需要在搜索上稍加技巧即可。2、Queen N皇后问题大概题意:这么经典的题就不用讲题目了吧。题解:直接DFS,注意需要输出方案。代码:-------------------------...
分类:其他好文   时间:2015-08-17 16:54:25    阅读次数:165
zoj 3822 Domination 【概率DP 求期望】
Domination Time Limit: 8 Seconds      Memory Limit: 131072 KB      Special Judge Edward is the headmaster of Marjar University. He is enthusiastic about chess and often plays chess with his...
分类:其他好文   时间:2015-08-17 01:07:55    阅读次数:119
【期望DP】 HDU 4405 Aeroplane chess
通道题意:飞行棋,从0到n,置骰子,置到几就往前走几步,前进中会有捷径,比如2和5连到一起了,那你走到2时可以直接跳到5,最后问跳到n时平均置几次骰子思路:dp[i]:到达i是,离终点的期望次数代码:#include #include #include using namespace std;con...
分类:其他好文   时间:2015-08-12 16:24:34    阅读次数:100
【百题留念】hdoj 1524 A Chess Game(dfs + SG函数应用)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1524 1 #include 2 #include 3 using namespace std; 4 const int M = 10000000;// 5 const int N = 1005; 6 i...
分类:其他好文   时间:2015-08-10 21:45:40    阅读次数:87
565条   上一页 1 ... 34 35 36 37 38 ... 57 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!