helianthus-duipai
从 Trac 迁移的文章
这是从旧校内 Wiki 迁移的文章,可能存在一些样式问题,您可以向 memset0 反馈。
原文章内容如下:
#include<bits/stdc++.h>
#include<ctime>
using namespace std;
double times,times2;
int main(){
int t = 0;
while ( true ){
system("./datamaker");
times = clock();
system("./B < input.txt > 1.out");
times2 = clock();
system("./std < input.txt > 2.out");
times2 = clock() - times2;
if ( system("diff 1.out 2.out > log.txt") ){
system("pause");
break;
}
cout<<"correct "<<++t<<endl;
cout<<times / 1000<<" "<<times2 / 1000<<endl;
}
return 0;
}
---------------------
作者:weixin_42484877
来源:CSDN
原文:https://blog.csdn.net/weixin_42484877/article/details/81486642
版权声明:本文为博主原创文章,转载请附上博文链接!
#include
#include
using namespace std;
double times,times2;
int main(){
int t = 0;
while ( true ){
system("./datamaker");
times = clock();
system("./B < input.txt > 1.out");
times2 = clock();
system("./std < input.txt > 2.out");
times2 = clock() - times2;
if ( system("diff 1.out 2.out > log.txt") ){
system("pause");
break;
}
cout<<"correct "<<++t< cout< } return 0; } 作者:weixin_42484877 来源:CSDN 原文:https://blog.csdn.net/weixin_42484877/article/details/81486642 版权声明:本文为博主原创文章,转载请附上博文链接!