完全适用我的电脑......不知道为啥我的电脑总会有这样那样的问题......
#include <bits/stdc++.h> #include <windows.h> using namespace std; int main() { system("g++ makedata.cpp -o data -O2"); system("g++ std.cpp -o std -O2"); system("g++ test.cpp -o test"); clock_t st, ed; for (int i = 1; i <= 10000000; i++) { printf( //Sleep(1000); system("data"); system("std"); st = clock(); system("test"); ed = clock(); printf("Time used int k = system("fc my.out std.out"); if (k) printf("WA\n"),system("pause"); else printf("AC\n"); } return 0; }
Comments NOTHING