【模板】常用骗分、对拍

C++版本:

常用骗分

#include<algorithm> 
next_permutation(a+1,a+n+1);//下一个全排列
random_shuffle(a+1,a+n+1);//随机洗牌

对拍

:loop
sj.exe
baoli.exe
main.exe
fc %errorlevel% == 1 pause
goto loop

随机数生成

#include<ctime>
#include<cstdlib> 
srand(time(NULL));
int n=rand()%17; 
posted @ 2020-09-17 16:55  pjhui  阅读(132)  评论(0编辑  收藏  举报