码迷,mamicode.com
首页 > 其他好文 > 详细

对拍板子

时间:2020-06-15 17:33:26      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:meta   cti   using   ring   keyword   color   clu   main   names   

#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;
    }
}

 

 

对拍板子

标签:meta   cti   using   ring   keyword   color   clu   main   names   

原文地址:https://www.cnblogs.com/soda-ma/p/13132011.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!