55oe
latest version
init.sh
Bash#!/bin/bash
echo lsy-cmake
cat > ~/.vimrc << EOF
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
inoremap [ []<LEFT>
inoremap ' ''<LEFT>
inoremap { {}<LEFT>
inoremap " ""<LEFT>
inoremap ( ()<LEFT>
EOF
echo .vimrc-processing
cat > /usr/bin/g+ << EOF
#!/bin/bash
g++ \$1.cpp -o \$1.exe -std=c++14 -Wall -Wextra -Wl,-stack=999999999 -O2 -g
EOF
echo g+-processing
cat > /usr/bin/r+ << EOF
#!/bin/bash
g+ \$1;time ./\$1.exe
EOF
echo r+-processing
chmod a+x /usr/bin/g+
chmod a+x /usr/bin/r+
echo chmod-processing
echo lsy-Linux-init-finished
echo testing:
cat > ~/qwq.cpp << EOF
#include<bits/stdc++.h>
using namespace std;
signed main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cout << "lsy_init_sh qwq";
return 0;
}
EOF
echo testing g+:
g+ qwq
echo testing r+
r+ qwq
echo testing vim:
echo that is for you!
echo end
pai.sh
Bash#!/usr/bin/bash
for((;;)){
./gen.exe >data.in;
./qwq.exe <data.in >qwq.out;
./sol.exe <data.in >sol.out;
if !(diff -w sol.out qwq.out); then
break;
fi
}
install
https://wwzr.lanzout.com/iN7bz2nipxob