写题板子
#include#include #include #include #include #include #include #include #include #include #include #include
对拍板子
对拍代码
#include#include using namespace std;#define N 100010int main() { int C = 0; while(1) { system("maker.exe"); system("bf.exe"); Sleep(500); system("std.exe"); //Sleep(500); if(system("fc bf.out std.out")) { printf("wa on test #%d\n", ++C); break; } else printf("ac on test #%d\n", ++C); }}
maker板子。
#includeusing namespace std;#define ll long longinline ll random(ll n) { return (ll)rand() * rand() % n;}char in[10][10] = {"1.in", "2.in", "3.in", "4.in", "5.in", "6.in", "7.in", "8.in", "9.in", "10.in"};char out[10][10] = {"1.out", "2.out", "3.out", "4.out", "5.out", "6.out", "7.out", "8.out", "9.out", "10.out"};int main() { freopen("data.in", "w", stdout); }