码迷,mamicode.com
首页 > 其他好文 > 详细

roadlocks(poj3255)

时间:2020-01-18 14:52:34      阅读:51      评论:0      收藏:0      [点我收藏+]

标签:int   就是   font   big   air   bsp   struct   priority   cto   

1,直接上英文题目我果然不咋懂。

2,这个edge了啥的用法我不清楚。

 typedef pair <int,int> P;

priority_queue<P,vector<P>,greater<P> > que; 

把这个搞清楚下挺好的,

typedef为C语言的关键字,作用是为一种数据类型定义一个新名字。"

再就是pair 的用法了。

3,struct后面的花括号后面也要加分号记得。

roadlocks(poj3255)

标签:int   就是   font   big   air   bsp   struct   priority   cto   

原文地址:https://www.cnblogs.com/beiyueya/p/12208843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!