首页 > 其他 > 详细

需要注意的各种各种 持续更新?

时间:2017-11-04 22:19:32      阅读:231      评论:0      收藏:0      [点我收藏+]

随便写写~如果对你有帮助那是更好。

①对拍啊对拍啊,再写不对我就继续写…… QAQ


bat:
:again
r.exe > input
a.exe < input > out.a
b.exe < input > out.b
fc out.a out.b  >nul
if not errorlevel 1 goto again

 

注意那个什么 out.a out.b,还有是if not  !! 和 1 !!

 

②stl堆的定义


 

priority_queue <int> q;

根堆:

priority_queue <int,vector<int>,greater<int> > q;

 

③随机化函数


srand((unsigned)time(NULL));

n = rand();

srand 和 rand 属于 #include<algorithm>

time 属于 #include<ctime>

 

需要注意的各种各种 持续更新?

原文:http://www.cnblogs.com/Loizbq/p/7784601.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!