需对拍代码加这一句
freopen("1.in","r",stdin);
freopen("sb.out","w",stdout);
//文件名:未命名1标准代码加这一句
freopen("1.in","r",stdin);
freopen("std.out","w",stdout);
//文件名:std数据生成器(同类型替换)T619237
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
ull randbe(ll l,ll r){
ull shu=rand()*rand()+rand()*rand();
return shu%(r-l+1)+l;
}
int main(){
freopen("1.in","w",stdout);
srand(time(0));
int n=randbe(3,5);//数据范围(同类型替换)
cout<<n<<'\n';
for(int i=1;i<=n;i++){
cout<<randbe(1,14)<<" ";
}
cout<<endl;
for(int i=1;i<=n;i++){
int op,l,r,c;
op=randbe(0,1);
l=randbe(1,n/2);
r=randbe(1,n);
c=randbe(1,14);
cout<<op<<" "<<l<<" "<<r<<" "<<c<<endl;
}
return 0;
}
//文件名:simple对拍器
#include <bits/stdc++.h>
using namespace std;
int main(){
while(1){
system("simple.exe");
system("未命名1.exe");
system("std.exe");
if(system("fc std.out sb.out"))
system("pause");
else system("cls");
}
return 0;
}
//文件名:check都跑一遍后再用对拍器