`
thecloud
  • 浏览: 872256 次
文章分类
社区版块
存档分类
最新评论

POJ 2993 Emag eht htiw Em Pleh &&POJ 2996的反序

 
阅读更多

学会了用strtok()函数分割字符串
Emag eht htiw Em Pleh
Time Limit:1000MS Memory Limit:65536K



Description

This problem is a reverse case of theproblem 2996. You are given the output of the problem H and your task is to find the corresponding input.

Input

according to output ofproblem 2996.

Output

according to input ofproblem 2996.

Sample Input

White: Ke1,Qd1,Ra1,Rh1,Bc1,Bf1,Nb1,a2,c2,d2,f2,g2,h2,a3,e4
Black: Ke8,Qd8,Ra8,Rh8,Bc8,Ng8,Nc6,a7,b7,c7,d7,e7,f7,h7,h6

Sample Output

+---+---+---+---+---+---+---+---+
|.r.|:::|.b.|:q:|.k.|:::|.n.|:r:|
+---+---+---+---+---+---+---+---+
|:p:|.p.|:p:|.p.|:p:|.p.|:::|.p.|
+---+---+---+---+---+---+---+---+
|...|:::|.n.|:::|...|:::|...|:p:|
+---+---+---+---+---+---+---+---+
|:::|...|:::|...|:::|...|:::|...|
+---+---+---+---+---+---+---+---+
|...|:::|...|:::|.P.|:::|...|:::|
+---+---+---+---+---+---+---+---+
|:P:|...|:::|...|:::|...|:::|...|
+---+---+---+---+---+---+---+---+
|.P.|:::|.P.|:P:|...|:P:|.P.|:P:|
+---+---+---+---+---+---+---+---+
|:R:|.N.|:B:|.Q.|:K:|.B.|:::|.R.|
+---+---+---+---+---+---+---+---+

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics