最后:
文件都编译后运行,遇到结果不一致的情况会停下
错误的输入样例在data.in中查看
1,数据生成
#include <bits/stdc++.h>
using namespace std;
int main()
{
srand(time(0));
int n=rand()*rand()%200000;
int m=rand()*rand()%200000;
printf("%d %d\n",n,m);
return 0;
}
2,AC代码
#include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,m;
scanf("%lld%lld",&n,&m);
printf("%lld\n",n*m);
return 0;
}
3,WA代码
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
scanf("%d%d",&n,&m);
printf("%d\n",n*m);
return 0;
}
4,测试
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
while(true)
{
system("data.exe>data.in");
system("ac.exe<data.in>ac.out");
system("wa.exe<data.in>wa.out");
if(system("fc ac.out wa.out"))
{
system("pause");
}
}
return 0;
}