E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
chess
HDU 4405 Aeroplane
chess
(概率dp)
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=4405题意:这是一个飞行棋游戏。棋盘上有n+1(1 #include #include #include #include #include #include #include #include #include #include #include #include #include #include
ilovexiaohao
·
2013-08-19 20:00
用Java编写的五子棋--原创(转载请留言)
importjava.net.URL; importjava.util.Arrays; importjava.util.Random; @SuppressWarnings("serial") publicclass
Chess
Panelexte
小夜的传说
·
2013-08-14 14:17
Java五子棋源码
UVA 10422 Knights in FEN (BFS + 判重)
ProblemDKnightsinFENInput: standardinputOutput: standardoutputTimeLimit: 10seconds Thereareblackandwhiteknightsona5by5
chess
board.Therearetwelveofeachcolor
u011217342
·
2013-08-12 22:00
uva 10422 Knights in FEN(迭代dfs)
KnightsinFENInput: standardinputOutput: standardoutputTimeLimit: 10seconds Thereareblackandwhiteknightsona5by5
chess
board.Therearetwelveofeachcolor
u011328934
·
2013-08-12 21:00
八皇后问题—递归实现
#includeintcount=0;intnotDanger(introw,intj,int(*
chess
)[8]){inti,k,flag1=0,flag2=0,flag3=0,flag4=0,flag5
Y_23k_bug
·
2013-08-09 02:00
算法
递归
八皇后问题
Super Jumping! Jumping! Jumping!(动态规划)
Java/Others)TotalSubmission(s):17610 AcceptedSubmission(s):7541ProblemDescriptionNowadays,akindof
chess
gam
Simone_chou
·
2013-08-07 16:00
super
hdu4405(概率DP)
Aeroplane
chess
TimeLimit:2000/1000MS(Java/Others) MemoryLimit:32768/32768K(Java/Others)TotalSubmission
xj2419174554
·
2013-08-05 21:00
动态规划
HDU 4405 Aeroplane
chess
题目大意:玩一种飞行棋,从0开始走到n,根据扔骰子的点数向右走,但是其中可能存在通道,即直接传送到另一个位置,问掷骰子的期望次数。e[i]代表在i位置的期望 DP求解,若遇到通道则俩期望相等#include #include #include usingnamespacestd; #defineN100010 #defineM1005 doublee[N]; intflight[N
biboyouyun
·
2013-08-04 22:00
DP概率
How to Hack
BeforeYouHack1Learnaprogramminglanguage.Youshouldn'tlimityourselftoanyparticularlanguage,butthereareafewguidelines.CisthelanguagetheUnixwasbuiltwith.It(alongwithassemblylanguage)tea
chess
omethingthat's
lk5423968
·
2013-08-04 17:00
linux 12.04 LTS版本下安装red5
:sudoapt-getupdate&&sudoapt-getupgrade 3、安装ssh服务器:sudoapt-getinstallopenssh-server (或者搜索:sudoapt-ca
chess
h
laoyaowst
·
2013-08-03 23:51
linux
server
Red5
hdu 1401 Solitaire (char数组判重节约内存+伪dbfs)
Others)TotalSubmission(s):2611 AcceptedSubmission(s):850ProblemDescriptionSolitaireisagameplayedona
chess
board8x8
u010228612
·
2013-08-03 17:00
POJ1315:Don't Get Rooked
Don'tGetRookedTimeLimit: 1000MS MemoryLimit: 10000KTotalSubmissions: 2078 Accepted: 1317DescriptionIn
chess
l383137093
·
2013-08-03 11:00
搜索
DFS
回溯
hdu 3345 War
Chess
(BFS 判断条件稍多,有陷阱)
1、http://acm.hdu.edu.cn/showproblem.php?pid=33452、题目大意:给定一张图,其中'R'代表河,从此方格经过消费3个mv,'T'代表树,从此格经过消费2个mv,'.'代表正常的方格,从次经过消费一个mv,‘E'代表敌人,不能从此格经过,而且此格的相邻的格子会使得mv减成0,’P‘代表朋友,不能停留在此方格,但是可以从此次方格经过,消费一个mv,Y代表现在
sdjzping
·
2013-08-01 16:00
UVA 11538
Chess
Queen
因为是两个不一样的皇后(一黑一白),所以考虑顺序。(一开始以为是一样的,坑啊)先考虑横向冲突的(设n为行,m为列,且n #include #include usingnamespacestd; intmain() { unsignedlonglongn,m; while(scanf("%llu%llu",&n,&m),n||m) { if(n>m)swap(n,m); //cout<
murmured
·
2013-07-30 20:00
Help Me with the Game(poj2996模拟)
2996HelpMewiththeGameTimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:2841Accepted:1834DescriptionYourtaskistoreadapictureofa
chess
boardpositionandprintitinthe
chess
notatio
JHC23
·
2013-07-29 20:00
hdu 4405 Aeroplane
chess
概率dp的水题#include #include #include #include usingnamespacestd; //hdu4405 /* e[n]=0; line[i]==-1...e[i]=1+1/6*({i=0;--i) { if(line[i]!=-1) e[i]=e[line[i]]; else { e[i]=0.0; for(j=1;j<=6&&i+j<=n;++j) e[i
solotzg
·
2013-07-29 20:00
Chinese
Chess
关键匹配
Chinese
Chess
TimeLimit: 20.0Seconds MemoryLimit: 65536KTotalRuns: 426 AcceptedRuns: 47Winnieisveryinterestedinchinese
chess
.Now
firenet1
·
2013-07-28 15:00
关键匹配
数学基础题
uva11538-
Chess
Queen///*UVa11538 ///*两皇后放在同一行A(n,m)=n*m*(m-1)即先选出白后,先从n行中选1行n种,然后在每行中放二后有m*(m-1)种 ///*
y990041769
·
2013-07-27 19:00
c
算法
数学
iostream
java五子棋游戏
Five
Chess
Main.javapackageorg.myFive
Chess
; publicclassFive
Chess
Main{ publicstaticvoidmain(Stringargs
wuxinliulei
·
2013-07-24 18:00
java
UVA10161Ant on a
Chess
board
题意:找出所给数字的坐标思路:对角线上的数符合a=n*(n-1)+1,然后从奇偶行的数与对角线上的数的大小关系,推出坐标 #include #include voidfound(intx){ intm=ceil(sqrt(x)); intnum=m*(m-1)+1; if(m%2==0){ if(x
u011345461
·
2013-07-21 09:00
uva 10161 Ant on a
Chess
board(蛇型矩阵)
ProblemA.Antona
Chess
board Background Oneday,anantcalledAlicecametoanM*M
chess
board.Shewantedtogoaroundallthegrids.Soshebegantowalkalongthe
chess
boardaccordingtothisway
u011328934
·
2013-07-20 13:00
uva 639 Don't Get Rooked(回溯)
Don'tGetRooked In
chess
,therookisapiecethatcanmoveanynumberofsquaresverticallyorhorizontally.Inthisproblemwewillconsidersmall
chess
boards
u011328934
·
2013-07-20 13:00
Bash string operation
=s2(3)s1s2(5)-ns1(6)-zs1(1)s1mat
chess
2(2)s1doesnotmatchs2(3)__TO-DO__(4)__TO-DO__(5)s1isnotnull(containsoneormorecharacters
lcj_cjfykx
·
2013-07-18 05:00
uva 439 Knight Moves(BFS)
TKP) whereyouaretofindtheshortestclosedtourofknightmovesthatvisitseachsquareofagivensetof n squaresona
chess
boardexactlyonce.Hethink
u011328934
·
2013-07-17 19:00
POJ_2446_
Chess
board
#include 2#include 3#include 4#defineMAX35 5 6structz 7{ 8intcolor; 9intct; 10}; 11structz
chess
·
2013-07-16 20:00
poj
初学者oracle里常用命令详细讲解
第一章:日志管理1.forcinglogswit
chess
ql>altersystemswitchlogfile;2.forcingcheckpointssql>altersystemcheckpoint
天真花语
·
2013-07-16 14:01
oracle
基本命令详解
hdu1401Solitaire(dbfs)
Others)TotalSubmission(s):2539 AcceptedSubmission(s):826ProblemDescriptionSolitaireisagameplayedona
chess
board8x8
ophunter
·
2013-07-16 13:00
bfs
10161 - Ant on a
Chess
board
ProblemA.Antona
Chess
board Oneday,anantcalledAlicecametoanM*M
chess
board.Shewantedtogoaroundallthegrids.Soshebegantowalkalongthe
chess
boardaccordingtothisway
SIOFive
·
2013-07-16 10:00
uva
五子棋游戏程序
#include#includeusingnamespacestd;class
CHESS
{public:
CHESS
();voidsetStep(bool&ipjudge);//双人对战轮流走棋函数voidsetStepC
张生Rices
·
2013-07-15 16:21
return
include
private
public
五子棋游戏
C#委托
definesrequiredsignature: delegatevoidSampleDelegate(stringmessage); classMainClass { //Regularmethodthatmat
chess
ignature
AWNUXCVBN
·
2013-07-12 10:00
C#
委托
hdu 1401双广
Others)TotalSubmission(s):2526 AcceptedSubmission(s):822ProblemDescriptionSolitaireisagameplayedona
chess
board8x8
JustSteps
·
2013-07-04 17:00
CSUOJ 1302 - Walking on
Chess
board 暴力BFS
http://122.207.68.93/OnlineJudge/problem.php?id=1302暴力BFS即可..保持步数从小到大的更新..开始不敢做..没注意数据的一些范围...Program://http://122.207.68.93/OnlineJudge/problem.php?id=1302 #include #include #include #include #includ
kk303
·
2013-07-02 09:00
10161 - Ant on a
Chess
board
ProblemA.Antona
Chess
board Background Oneday,anantcalledAlicecametoanM*M
chess
board.Shewantedtogoaroundallthegrids.Soshebegantowalkalongthe
chess
boardaccordingtothisway
·
2013-06-28 18:00
ant
Leetcode: N Queen I & II
Then-queenspuzzleistheproblemofplacingnqueensonann�n
chess
boardsuchthatnotwoqueensattackeachother.Givenanintegern
u011095253
·
2013-06-24 08:00
利用递归求解八皇后问题
#include #defineROW8//8行修改行数、列数,可求解对应的N皇后问题 #defineCOLUMN8//8列 intnotDanger(introw,intcolumn,int(*
chess
jiajiayouba
·
2013-06-23 14:00
递归
八皇后
7.10161 - Ant on a
Chess
board
本题是数学推导题.749484746454443 626272829303142 525242322213241 410111213203340 3 9 8 714193439 2 2 3 615183538 1 1 4 516173637 1 2 3 4 5 6 7看对称线1371321...可以推出an=n(n-1)+1;如果有一个工具能判断出输入的数是在第几行/列,那么就简单了.(只需加
PandaCub
·
2013-06-20 00:00
uva
Maths-Misc
POJ 1657 (Distance on
Chess
board)
题意:王,皇后,车,象在棋面上从一个位置移动到另一个位置的最小次数分析:王 ,是横坐标距离和纵坐标距离中的最大值。 皇后,如果是在一条横竖直线或者在斜线上,则输出1,否则就是输出2。 车,如果在一条横竖直线上,则输出1,否则输出2。 象,稍微麻烦一点,如果是在同一颜色之间移动,则肯定有值,是1或2。 不在同一颜色之间移动,就无法到达,输出Inf
WWL919618308
·
2013-06-13 15:00
App开源项目收集和汇总:App Store地址和源代码(三)
SageMath---(ituneslink)(sourcecode) 附件: 3.SpaceBubble(太空游戏)---(ituneslink)(sourcecode) 附件:4.Stockfish
Chess
hengshujiyi
·
2013-06-08 09:00
HDU3345:War
Chess
(BFS+优先队列)
ProblemDescriptionWar
chess
ishh'sfavoritegame:Inthisgame,thereisanN*Mbattlemap,andeveryplayerhashisownMovingVal
libin56842
·
2013-06-06 21:00
ACM
HDU
解题报告
bfs
HDU1372:Knight Moves(BFS)
(TKP)whereyouaretofindtheshortestclosedtourofknightmovesthatvisitseachsquareofagivensetofnsquaresona
chess
boardexactlyonce.Hethin
libin56842
·
2013-06-03 20:00
ACM
HDU
bfs
HDU 3026 Chinese
Chess
大意略。求大牛解答,二分图中如何判断关键边?除了暴力枚举之外的解法。#include #include #include #include #include #include #include #include #include #include usingnamespacestd; constintmaxn=100000; constintmaxm=1010*1010; constintIN
Wall_F
·
2013-05-29 11:00
codeforces 7A - Kalevitch and
Chess
刷棋盘,每次刷一行或一列,可重复刷#include#include#include#include#include#include#include#include#include#include#include#include#includeusingnamespacestd;#definelllonglong#definelsrt>1#defineeps(1e-9)#definetypeint#
ymrfzr
·
2013-05-29 08:00
模拟
codeforces
动态规划- Super Jumping! POJ-1087
Java/Others)TotalSubmission(s):16653 AcceptedSubmission(s):7093ProblemDescriptionNowadays,akindof
chess
gam
gaotong2055
·
2013-05-28 16:00
动态规划- Super Jumping! POJ-1087
32768K(Java/Others)TotalSubmission(s):16653AcceptedSubmission(s):7093ProblemDescriptionNowadays,akindof
chess
gamecalled
从此醉
·
2013-05-28 16:00
super
hdu 1524 A
Chess
Game
\\Time31ms,Memory4312K#include #include #include usingnamespacestd; intn,p[1010][1010],sg[1010],b[1010]; intmex(intx) { if(sg[x]!=-1)returnsg[x]; if(b[x]==0)return0; inti,v[1010]; memset(v,0,sizeof(v)
u010679062
·
2013-05-26 22:00
HDU
博弈
HDU - Super Jumping! Jumping! Jumping!(dp)
ProblemDescriptionNowadays,akindof
chess
gamecalled“SuperJumping!Jumping!Jumping!”
sevenmit
·
2013-05-25 20:45
动态规划
【语言处理与Python】3.7用正则表达式为文本分词
分词的简单方法raw="""'WhenI'MaDu
chess
,'shesaidtoherself,(notinaveryhopefultone...though),'Iwon'thaveanypepperinmykitchenATALL.Soupdoesvery
你狗
·
2013-05-24 20:00
python
A. Shortest path of the king
timelimitpertest1secondmemorylimitpertest64megabytesinputstandardinputoutputstandardoutputThekingisleftaloneonthe
chess
board.Inspiteofthisloneliness
jj12345jj198999
·
2013-05-23 09:00
uva 639 Don't Get Rooked
option=com_onlinejudge&Itemid=8&category=108&page=show_problem&problem=580题目描述: Don'tGetRooked In
chess
hackerwin7
·
2013-05-17 19:00
Super Jumping! Jumping! Jumping!
Java/Others)TotalSubmission(s):16519 AcceptedSubmission(s):7022ProblemDescriptionNowadays,akindof
chess
gam
qq909157370
·
2013-05-16 21:00
算法
上一页
50
51
52
53
54
55
56
57
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他