版本比较
关于对拍
正文
增加 12 行删除 12 行
28 行未改动2930313233343334353636373839404041424343444546464748495018 行未改动697071727374737475767677787980808182838384858686878889905 行未改动28 行未改动
int main(){ long s,t; while(1){ system("C:\\qwqcodefield\\duipai\\bin\\rand.exe");
system("C:\\qwqcodefield\\duipai\\bin\\rand.exe"); //生成数据,正常放同一文件夹下,不用写完整路径
s=clock(); system("C:\\qwqcodefield\\duipai\\bin\\t1.exe"); t=clock();//你以为的正解
system("C:\\qwqcodefield\\duipai\\bin\\check.exe");
//比对输出 if(system("fc first.out second.out")){ cout<<"Wa"<<endl; cout<<"Wa"<<endl; cout<<t-s<<"ms"<<endl; break; } else {18 行未改动
int main(){ long s,t; while(1){ system("./rand");
system("./rand"); //生成数据,正常放同一文件夹下,不用写完整路径
s=clock(); system("./t1"); t=clock();//你以为的正解
system("./check");
//比对输出 if(system("diff first.out second.out")){ cout<<"Wa"<<endl; cout<<"Wa"<<endl; cout<<t-s<<"ms"<<endl; break; } else {5 行未改动