个人介绍
增加 55 行删除 0 行
136 行未改动全部展开137138139140141136 行未改动全部展开:::info[自存杂项]<1.1.1.3>,user = 林子健,pwd = #120309abcd:::136 行未改动全部展开137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196136 行未改动全部展开:::info[自存杂项]<1.1.1.3>,user = 林子健,pwd = #120309abcd```cppchrono::steady_clock::now().time_since_epoch().count()random_seed <= __builtin_ia32_rdtsc() ^ (unsigned long long)(new char)``````bashCompile(){g++ ./$1.cpp -o ./$1 -std=c++14 -O2 -static -Wall -Wextra -Wshadow -Dkqpkao}Run(){Compile $1 && echo "===============================" && ./$1 && echo "==============================="}Judge() {if ! g++ $1.cpp -o $1 -std=c++14 -O2 -static -Wall -Wextra -Wshadow -Dkqpkao 2> CompileInfo.txt; thenecho -e "Compile error."elsefor ((i = $2; i <= $3; i++)); do{cp $4$i.$5 $1.inecho -e -n "Sample $i | " && /usr/bin/time -f "%e %M" ./$1 2>&1 | awk '{printf "Time: %dms; Memory: %.2f MB | ", $1*1000, $2/1024}'if ! diff -w $4$i.$6 $1.out > /dev/null; thenprintf "\033[0;31mWrong\033[0m\n"else printf "\033[0;32mAccepted\033[0m\n"fi}donefi}Pdiff(){if echo -e "Compile $1..." && ! Compile $1 2> CompileInfo.txt; thenecho -e "$1 Compile error."elif echo -e "Compile $2..." && ! Compile $2 2> CompileInfo.txt; thenecho -e "$2 Compile error."elif echo -e "Compile $3..." && ! Compile $3 2> CompileInfo.txt; thenecho -e "$3 Compile error."elsefor ((i = 1; i <= $4; i++)); do{echo -e -n "Test $i | $1 | " && ./$1echo -e -n "$2 " && /usr/bin/time -f "%e %M" ./$2 2>&1 | awk '{printf "Time: %dms; Memory: %.2f MB | ", $1*1000, $2/1024}'echo -e -n "$3 " && /usr/bin/time -f "%e %M" ./$3 2>&1 | awk '{printf "Time: %dms; Memory: %.2f MB | ", $1*1000, $2/1024}'if ! diff -w $2.out $3.out > /dev/null; then{printf "\033[0;31mWrong\033[0m\n"diff -w $2.out $3.outbreak 2}else printf "\033[0;32mAccepted\033[0m\n"fi}donefi}```:::