/.Let life be beautiful like summer flowers and death like autumn leaves./
// author fkxr
#include<bits/stdc++.h>
using namespace std;
const string problem="./ak_all/ak_all",mycode="./ak_all/ak_all";
const int MAXID=6;
signed main(){
system("rm -f ./*.myans");
assert(!system(("g++ "+mycode+".cpp -o ./a.exe -O2 -std=c++14").c_str()));
for(int t=1;t<=MAXID;t++){
string id=problem+to_string(t);
string op="./a.exe <"+id+".in > "+id+".myans";
string run="ulimit -s unlimited && ulimit -v 524288 && ulimit -t 5 && time -f 'time: %e s memory: %M kb' "+op;
system(run.c_str());
string cmp="diff -bB "+id+".ans "+id+".myans";
if(system(cmp.c_str())){
cout<<"WA on test #"<<t<<"\n";
}else{
cout<<"#"<<t<<" was correct!\n";
}
}
return 0;
}
#include <bits/stdc++.h>
#define int long long
#define endl "\n"
using namespace std;
signed main() {
ios::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
return 0;
}