设为首页 加入收藏

TOP

Codeforces 436 C. Dungeons and Candies(二)
2015-07-24 05:48:32 来源: 作者: 【 】 浏览:14
Tags:Codeforces 436 Dungeons and Candies
er of transferring levels. The levels are numbered 1 through k in the order they follow in the input.

If there are multiple optimal solutions, you can print any of them.

Sample test(s) input
2 3 3 2
A.A
...
A.a
..C
X.Y
...
output
14
1 0
2 1
3 1
input
1 1 4 1
A
.
B
.
output
3
1 0
2 0
4 2
3 0
input
1 3 5 2
ABA
BBB
BBA
BAB
ABB
output
11
1 0
3 1
2 3
4 2
5 1

#include 
  
   
#include 
   
     #include 
    
      #include 
     
       #include 
      
        using namespace std; struct Edge { int u,v,w; }edge[1100*1100]; bool cmp(Edge a,Edge b) { return a.w
       
         vc[1100]; int get_diff(char a[][20],char b[][20] ) { int ret=0; for(int i=0;i
        
         


首页 上一页 1 2 下一页 尾页 2/2/2
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇uva 11885 - Number of Battlefie.. 下一篇简单工厂模式

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: