#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<ctime>
using namespace std;


int main()
{
    for(int t = 1;;t ++)
    {
        system("data.exe");
        system("a.exe");
        system("std.exe");
        if(!system("fc a.txt std.txt"))
        {
            printf("%d    :AC\n",t);
        }
        else
        {
            printf("%d    :WA\n",t);
            break;
        }
    }
    return 0;
}

 

#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<ctime>
using namespace std;


int main()
{
    for(int t = 1;;t ++)
    {
        system("data.exe > in.txt");
        system("a.exe < in.txt > out.txt");
        system("std.exe < in.txt > ans.txt");
        if(!system("fc out.txt ans.txt"))
        {
            printf("%d    :AC\n",t);
        }
        else
        {
            printf("%d    :WA\n",t);
            break;
        }
    }
    return 0;
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2021-11-14
  • 2021-10-20
猜你喜欢
  • 2021-10-27
  • 2021-12-03
  • 2021-09-09
  • 2021-12-05
  • 2021-09-05
  • 2022-12-23
  • 2022-01-19
相关资源
相似解决方案