对拍板子

Posted soda-ma

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了对拍板子相关的知识,希望对你有一定的参考价值。

#include <bits/stdc++.h>
using namespace std;
int main(){
    int T = 10000;
    int tot = 0;
    system("g++ 1.cpp -o 1; g++ std.cpp -o std; g++ data.cpp -o data");
    while(T--){
        tot++;
        cout << tot << "--->";
        system("./data; ./1; ./std");
        if(system("diff 1.out std.out")){
            cout << "WA" << endl;
            return 0;
        }
        else 
            cout << "AC" << endl;
    }
}

 

 

以上是关于对拍板子的主要内容,如果未能解决你的问题,请参考以下文章