摘要:
除下面一个外,其他和priority_queue的用法相同 就是得到最后一个,相当于vector中的end() back() // queue::back #include // std::cout #include // std::queue usin... 阅读全文
posted @ 2014-08-04 16:16 蓝空 阅读(143) 评论(0) 推荐(0)
|
||
|
摘要:
除下面一个外,其他和priority_queue的用法相同 就是得到最后一个,相当于vector中的end() back() // queue::back #include // std::cout #include // std::queue usin... 阅读全文
posted @ 2014-08-04 16:16 蓝空 阅读(143) 评论(0) 推荐(0)
摘要:
注意结合queue的用法记忆 top()(注意这个在queue中没有,和queue中的front()一样) // priority_queue::top #include // std::cout #include // std::priority_queue ... 阅读全文
posted @ 2014-08-04 15:22 蓝空 阅读(193) 评论(0) 推荐(0)
摘要:
long long 在Codeblocks 里可以正常的输入和输出,但是在VC里面就出问题了,会出现: binary '>>' : no operator defined which takes a right-hand operand of type '__int64' (or there i... 阅读全文
posted @ 2014-08-04 15:05 蓝空 阅读(2400) 评论(0) 推荐(0)
摘要:
Description Farmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ... 阅读全文
posted @ 2014-08-04 14:36 蓝空 阅读(185) 评论(0) 推荐(0) |
||