汉魂南渡
神秘代码
C++// 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;
}
C++#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;
}
信奥
VisuAlgo
Algorithm Visualizer
Graph Editor
Big-O Cheat Sheet
Overleaf
OIerDb
数学
数学乐
国家中小学智慧教育平台
可汗学院中文站
菁优网
学科网
Wolfram Alpha
GeoGebra