码迷,mamicode.com
首页 > 编程语言 > 详细

c++ —— .bat 对拍

时间:2017-07-04 18:28:57      阅读:266      评论:0      收藏:0      [点我收藏+]

标签:else   txt   algorithm   turn   names   log   pre   cst   space   

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

 

c++ —— .bat 对拍

标签:else   txt   algorithm   turn   names   log   pre   cst   space   

原文地址:http://www.cnblogs.com/sssy/p/7117538.html

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