From 737e8e025546f3e46100ec9f4c017cd8cbf49ebb Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Mon, 8 Dec 2025 19:02:07 -0600 Subject: [PATCH] remove compile flags, debug scripts --- codeforces/1003/compile_flags.txt | 5 --- codeforces/1006/compile_flags.txt | 6 --- codeforces/1009/compile_flags.txt | 6 --- codeforces/1013/compile_flags.txt | 6 --- codeforces/1016/compile_flags.txt | 21 ----------- codeforces/1017/compile_flags.txt | 24 ------------ codeforces/1020/compile_flags.txt | 31 ---------------- codeforces/1020/debug_flags.txt | 12 ------ codeforces/1020/scripts/debug.sh | 29 --------------- codeforces/1020/scripts/run.sh | 29 --------------- codeforces/1020/scripts/utils.sh | 53 --------------------------- codeforces/1029/compile_flags.txt | 31 ---------------- codeforces/1029/debug_flags.txt | 14 ------- codeforces/1029/scripts/debug.sh | 29 --------------- codeforces/1029/scripts/run.sh | 29 --------------- codeforces/1029/scripts/utils.sh | 53 --------------------------- codeforces/1032/compile_flags.txt | 31 ---------------- codeforces/1032/debug_flags.txt | 14 ------- codeforces/1032/scripts/debug.sh | 29 --------------- codeforces/1032/scripts/run.sh | 29 --------------- codeforces/1032/scripts/utils.sh | 61 ------------------------------- codeforces/1034/compile_flags.txt | 31 ---------------- codeforces/1034/debug_flags.txt | 14 ------- codeforces/1034/scripts/debug.sh | 29 --------------- codeforces/1034/scripts/run.sh | 29 --------------- codeforces/1034/scripts/utils.sh | 61 ------------------------------- codeforces/1037/compile_flags.txt | 31 ---------------- codeforces/1037/debug_flags.txt | 14 ------- codeforces/1037/scripts/debug.sh | 29 --------------- codeforces/1037/scripts/run.sh | 29 --------------- codeforces/1037/scripts/utils.sh | 61 ------------------------------- codeforces/1043/compile_flags.txt | 31 ---------------- codeforces/1043/debug_flags.txt | 14 ------- codeforces/1043/scripts/debug.sh | 29 --------------- codeforces/1043/scripts/run.sh | 29 --------------- codeforces/1043/scripts/utils.sh | 61 ------------------------------- codeforces/431/compile_flags.txt | 5 --- codeforces/640/compile_flags.txt | 5 --- codeforces/762/compile_flags.txt | 31 ---------------- codeforces/762/debug_flags.txt | 14 ------- codeforces/762/scripts/debug.sh | 29 --------------- codeforces/762/scripts/run.sh | 29 --------------- codeforces/762/scripts/utils.sh | 61 ------------------------------- codeforces/784/compile_flags.txt | 31 ---------------- codeforces/784/debug_flags.txt | 14 ------- codeforces/784/scripts/debug.sh | 29 --------------- codeforces/784/scripts/run.sh | 29 --------------- codeforces/784/scripts/utils.sh | 61 ------------------------------- codeforces/790/compile_flags.txt | 31 ---------------- codeforces/790/debug_flags.txt | 14 ------- codeforces/790/scripts/debug.sh | 29 --------------- codeforces/790/scripts/run.sh | 29 --------------- codeforces/790/scripts/utils.sh | 61 ------------------------------- codeforces/799/compile_flags.txt | 21 ----------- codeforces/806/compile_flags.txt | 31 ---------------- codeforces/806/debug_flags.txt | 14 ------- codeforces/806/scripts/debug.sh | 29 --------------- codeforces/806/scripts/run.sh | 29 --------------- codeforces/806/scripts/utils.sh | 61 ------------------------------- codeforces/817/compile_flags.txt | 30 --------------- codeforces/817/debug_flags.txt | 14 ------- codeforces/817/scripts/debug.sh | 29 --------------- codeforces/817/scripts/run.sh | 29 --------------- codeforces/817/scripts/utils.sh | 53 --------------------------- codeforces/827/compile_flags.txt | 31 ---------------- codeforces/827/debug_flags.txt | 14 ------- codeforces/827/scripts/debug.sh | 29 --------------- codeforces/827/scripts/run.sh | 29 --------------- codeforces/827/scripts/utils.sh | 53 --------------------------- codeforces/835/compile_flags.txt | 31 ---------------- codeforces/835/debug_flags.txt | 14 ------- codeforces/835/scripts/debug.sh | 29 --------------- codeforces/835/scripts/run.sh | 29 --------------- codeforces/835/scripts/utils.sh | 53 --------------------------- codeforces/849/compile_flags.txt | 21 ----------- codeforces/859/compile_flags.txt | 22 ----------- codeforces/871/compile_flags.txt | 6 --- codeforces/874/compile_flags.txt | 31 ---------------- codeforces/874/debug_flags.txt | 14 ------- codeforces/874/scripts/debug.sh | 29 --------------- codeforces/874/scripts/run.sh | 29 --------------- codeforces/874/scripts/utils.sh | 53 --------------------------- codeforces/886/compile_flags.txt | 30 --------------- codeforces/886/debug_flags.txt | 14 ------- codeforces/886/scripts/debug.sh | 29 --------------- codeforces/886/scripts/run.sh | 29 --------------- codeforces/886/scripts/utils.sh | 53 --------------------------- codeforces/888/compile_flags.txt | 30 --------------- codeforces/888/debug_flags.txt | 14 ------- codeforces/888/scripts/debug.sh | 29 --------------- codeforces/888/scripts/run.sh | 29 --------------- codeforces/888/scripts/utils.sh | 53 --------------------------- codeforces/891/compile_flags.txt | 6 --- codeforces/894/compile_flags.txt | 6 --- codeforces/895/compile_flags.txt | 6 --- codeforces/898/compile_flags.txt | 31 ---------------- codeforces/898/debug_flags.txt | 14 ------- codeforces/898/scripts/debug.sh | 29 --------------- codeforces/898/scripts/run.sh | 29 --------------- codeforces/898/scripts/utils.sh | 61 ------------------------------- codeforces/900/compile_flags.txt | 6 --- codeforces/903/compile_flags.txt | 30 --------------- codeforces/903/debug_flags.txt | 14 ------- codeforces/903/scripts/debug.sh | 29 --------------- codeforces/903/scripts/run.sh | 29 --------------- codeforces/903/scripts/utils.sh | 53 --------------------------- codeforces/918/compile_flags.txt | 31 ---------------- codeforces/918/debug_flags.txt | 14 ------- codeforces/918/scripts/debug.sh | 29 --------------- codeforces/918/scripts/run.sh | 29 --------------- codeforces/918/scripts/utils.sh | 61 ------------------------------- codeforces/920/compile_flags.txt | 31 ---------------- codeforces/920/debug_flags.txt | 14 ------- codeforces/920/scripts/debug.sh | 29 --------------- codeforces/920/scripts/run.sh | 29 --------------- codeforces/920/scripts/utils.sh | 61 ------------------------------- codeforces/923/compile_flags.txt | 5 --- codeforces/928/compile_flags.txt | 31 ---------------- codeforces/928/debug_flags.txt | 14 ------- codeforces/928/scripts/debug.sh | 29 --------------- codeforces/928/scripts/run.sh | 29 --------------- codeforces/928/scripts/utils.sh | 61 ------------------------------- codeforces/929/compile_flags.txt | 31 ---------------- codeforces/929/debug_flags.txt | 14 ------- codeforces/929/scripts/debug.sh | 29 --------------- codeforces/929/scripts/run.sh | 29 --------------- codeforces/929/scripts/utils.sh | 61 ------------------------------- codeforces/935/compile_flags.txt | 31 ---------------- codeforces/935/debug_flags.txt | 14 ------- codeforces/935/scripts/debug.sh | 29 --------------- codeforces/935/scripts/run.sh | 29 --------------- codeforces/935/scripts/utils.sh | 61 ------------------------------- codeforces/937/compile_flags.txt | 31 ---------------- codeforces/937/debug_flags.txt | 12 ------ codeforces/937/scripts/debug.sh | 29 --------------- codeforces/937/scripts/run.sh | 29 --------------- codeforces/937/scripts/utils.sh | 53 --------------------------- codeforces/938/compile_flags.txt | 5 --- codeforces/944/compile_flags.txt | 31 ---------------- codeforces/944/debug_flags.txt | 12 ------ codeforces/944/scripts/debug.sh | 29 --------------- codeforces/944/scripts/run.sh | 29 --------------- codeforces/944/scripts/utils.sh | 53 --------------------------- codeforces/952/compile_flags.txt | 5 --- codeforces/957/compile_flags.txt | 5 --- codeforces/962/compile_flags.txt | 31 ---------------- codeforces/962/debug_flags.txt | 14 ------- codeforces/962/scripts/debug.sh | 29 --------------- codeforces/962/scripts/run.sh | 29 --------------- codeforces/962/scripts/utils.sh | 61 ------------------------------- codeforces/964/compile_flags.txt | 5 --- codeforces/970/compile_flags.txt | 31 ---------------- codeforces/970/debug_flags.txt | 12 ------ codeforces/970/scripts/debug.sh | 29 --------------- codeforces/970/scripts/run.sh | 29 --------------- codeforces/970/scripts/utils.sh | 53 --------------------------- codeforces/971/compile_flags.txt | 5 --- codeforces/974/compile_flags.txt | 5 --- codeforces/981/compile_flags.txt | 30 --------------- codeforces/981/debug_flags.txt | 14 ------- codeforces/981/scripts/debug.sh | 29 --------------- codeforces/981/scripts/run.sh | 29 --------------- codeforces/981/scripts/utils.sh | 53 --------------------------- codeforces/991/compile_flags.txt | 1 - codeforces/993/compile_flags.txt | 30 --------------- codeforces/993/debug_flags.txt | 14 ------- codeforces/993/scripts/debug.sh | 29 --------------- codeforces/993/scripts/run.sh | 29 --------------- codeforces/993/scripts/utils.sh | 53 --------------------------- codeforces/995/compile_flags.txt | 31 ---------------- codeforces/995/debug_flags.txt | 12 ------ codeforces/995/scripts/debug.sh | 29 --------------- codeforces/995/scripts/run.sh | 29 --------------- codeforces/995/scripts/utils.sh | 53 --------------------------- codeforces/996/compile_flags.txt | 5 --- codeforces/998/compile_flags.txt | 31 ---------------- codeforces/998/debug_flags.txt | 14 ------- codeforces/998/scripts/debug.sh | 29 --------------- codeforces/998/scripts/run.sh | 29 --------------- codeforces/998/scripts/utils.sh | 53 --------------------------- 180 files changed, 5153 deletions(-) delete mode 100644 codeforces/1003/compile_flags.txt delete mode 100644 codeforces/1006/compile_flags.txt delete mode 100644 codeforces/1009/compile_flags.txt delete mode 100644 codeforces/1013/compile_flags.txt delete mode 100644 codeforces/1016/compile_flags.txt delete mode 100644 codeforces/1017/compile_flags.txt delete mode 100644 codeforces/1020/compile_flags.txt delete mode 100644 codeforces/1020/debug_flags.txt delete mode 100644 codeforces/1020/scripts/debug.sh delete mode 100644 codeforces/1020/scripts/run.sh delete mode 100644 codeforces/1020/scripts/utils.sh delete mode 100644 codeforces/1029/compile_flags.txt delete mode 100644 codeforces/1029/debug_flags.txt delete mode 100644 codeforces/1029/scripts/debug.sh delete mode 100644 codeforces/1029/scripts/run.sh delete mode 100644 codeforces/1029/scripts/utils.sh delete mode 100644 codeforces/1032/compile_flags.txt delete mode 100644 codeforces/1032/debug_flags.txt delete mode 100644 codeforces/1032/scripts/debug.sh delete mode 100644 codeforces/1032/scripts/run.sh delete mode 100644 codeforces/1032/scripts/utils.sh delete mode 100644 codeforces/1034/compile_flags.txt delete mode 100644 codeforces/1034/debug_flags.txt delete mode 100644 codeforces/1034/scripts/debug.sh delete mode 100644 codeforces/1034/scripts/run.sh delete mode 100644 codeforces/1034/scripts/utils.sh delete mode 100644 codeforces/1037/compile_flags.txt delete mode 100644 codeforces/1037/debug_flags.txt delete mode 100644 codeforces/1037/scripts/debug.sh delete mode 100644 codeforces/1037/scripts/run.sh delete mode 100644 codeforces/1037/scripts/utils.sh delete mode 100644 codeforces/1043/compile_flags.txt delete mode 100644 codeforces/1043/debug_flags.txt delete mode 100644 codeforces/1043/scripts/debug.sh delete mode 100644 codeforces/1043/scripts/run.sh delete mode 100644 codeforces/1043/scripts/utils.sh delete mode 100644 codeforces/431/compile_flags.txt delete mode 100644 codeforces/640/compile_flags.txt delete mode 100644 codeforces/762/compile_flags.txt delete mode 100644 codeforces/762/debug_flags.txt delete mode 100644 codeforces/762/scripts/debug.sh delete mode 100644 codeforces/762/scripts/run.sh delete mode 100644 codeforces/762/scripts/utils.sh delete mode 100644 codeforces/784/compile_flags.txt delete mode 100644 codeforces/784/debug_flags.txt delete mode 100644 codeforces/784/scripts/debug.sh delete mode 100644 codeforces/784/scripts/run.sh delete mode 100644 codeforces/784/scripts/utils.sh delete mode 100644 codeforces/790/compile_flags.txt delete mode 100644 codeforces/790/debug_flags.txt delete mode 100644 codeforces/790/scripts/debug.sh delete mode 100644 codeforces/790/scripts/run.sh delete mode 100644 codeforces/790/scripts/utils.sh delete mode 100644 codeforces/799/compile_flags.txt delete mode 100644 codeforces/806/compile_flags.txt delete mode 100644 codeforces/806/debug_flags.txt delete mode 100644 codeforces/806/scripts/debug.sh delete mode 100644 codeforces/806/scripts/run.sh delete mode 100644 codeforces/806/scripts/utils.sh delete mode 100644 codeforces/817/compile_flags.txt delete mode 100644 codeforces/817/debug_flags.txt delete mode 100644 codeforces/817/scripts/debug.sh delete mode 100644 codeforces/817/scripts/run.sh delete mode 100644 codeforces/817/scripts/utils.sh delete mode 100644 codeforces/827/compile_flags.txt delete mode 100644 codeforces/827/debug_flags.txt delete mode 100644 codeforces/827/scripts/debug.sh delete mode 100644 codeforces/827/scripts/run.sh delete mode 100644 codeforces/827/scripts/utils.sh delete mode 100644 codeforces/835/compile_flags.txt delete mode 100644 codeforces/835/debug_flags.txt delete mode 100644 codeforces/835/scripts/debug.sh delete mode 100644 codeforces/835/scripts/run.sh delete mode 100644 codeforces/835/scripts/utils.sh delete mode 100644 codeforces/849/compile_flags.txt delete mode 100644 codeforces/859/compile_flags.txt delete mode 100644 codeforces/871/compile_flags.txt delete mode 100644 codeforces/874/compile_flags.txt delete mode 100644 codeforces/874/debug_flags.txt delete mode 100644 codeforces/874/scripts/debug.sh delete mode 100644 codeforces/874/scripts/run.sh delete mode 100644 codeforces/874/scripts/utils.sh delete mode 100644 codeforces/886/compile_flags.txt delete mode 100644 codeforces/886/debug_flags.txt delete mode 100644 codeforces/886/scripts/debug.sh delete mode 100644 codeforces/886/scripts/run.sh delete mode 100644 codeforces/886/scripts/utils.sh delete mode 100644 codeforces/888/compile_flags.txt delete mode 100644 codeforces/888/debug_flags.txt delete mode 100644 codeforces/888/scripts/debug.sh delete mode 100644 codeforces/888/scripts/run.sh delete mode 100644 codeforces/888/scripts/utils.sh delete mode 100644 codeforces/891/compile_flags.txt delete mode 100644 codeforces/894/compile_flags.txt delete mode 100644 codeforces/895/compile_flags.txt delete mode 100644 codeforces/898/compile_flags.txt delete mode 100644 codeforces/898/debug_flags.txt delete mode 100644 codeforces/898/scripts/debug.sh delete mode 100644 codeforces/898/scripts/run.sh delete mode 100644 codeforces/898/scripts/utils.sh delete mode 100644 codeforces/900/compile_flags.txt delete mode 100644 codeforces/903/compile_flags.txt delete mode 100644 codeforces/903/debug_flags.txt delete mode 100644 codeforces/903/scripts/debug.sh delete mode 100644 codeforces/903/scripts/run.sh delete mode 100644 codeforces/903/scripts/utils.sh delete mode 100644 codeforces/918/compile_flags.txt delete mode 100644 codeforces/918/debug_flags.txt delete mode 100644 codeforces/918/scripts/debug.sh delete mode 100644 codeforces/918/scripts/run.sh delete mode 100644 codeforces/918/scripts/utils.sh delete mode 100644 codeforces/920/compile_flags.txt delete mode 100644 codeforces/920/debug_flags.txt delete mode 100644 codeforces/920/scripts/debug.sh delete mode 100644 codeforces/920/scripts/run.sh delete mode 100644 codeforces/920/scripts/utils.sh delete mode 100644 codeforces/923/compile_flags.txt delete mode 100644 codeforces/928/compile_flags.txt delete mode 100644 codeforces/928/debug_flags.txt delete mode 100644 codeforces/928/scripts/debug.sh delete mode 100644 codeforces/928/scripts/run.sh delete mode 100644 codeforces/928/scripts/utils.sh delete mode 100644 codeforces/929/compile_flags.txt delete mode 100644 codeforces/929/debug_flags.txt delete mode 100644 codeforces/929/scripts/debug.sh delete mode 100644 codeforces/929/scripts/run.sh delete mode 100644 codeforces/929/scripts/utils.sh delete mode 100644 codeforces/935/compile_flags.txt delete mode 100644 codeforces/935/debug_flags.txt delete mode 100644 codeforces/935/scripts/debug.sh delete mode 100644 codeforces/935/scripts/run.sh delete mode 100644 codeforces/935/scripts/utils.sh delete mode 100644 codeforces/937/compile_flags.txt delete mode 100644 codeforces/937/debug_flags.txt delete mode 100644 codeforces/937/scripts/debug.sh delete mode 100644 codeforces/937/scripts/run.sh delete mode 100644 codeforces/937/scripts/utils.sh delete mode 100644 codeforces/938/compile_flags.txt delete mode 100644 codeforces/944/compile_flags.txt delete mode 100644 codeforces/944/debug_flags.txt delete mode 100644 codeforces/944/scripts/debug.sh delete mode 100644 codeforces/944/scripts/run.sh delete mode 100644 codeforces/944/scripts/utils.sh delete mode 100644 codeforces/952/compile_flags.txt delete mode 100644 codeforces/957/compile_flags.txt delete mode 100644 codeforces/962/compile_flags.txt delete mode 100644 codeforces/962/debug_flags.txt delete mode 100644 codeforces/962/scripts/debug.sh delete mode 100644 codeforces/962/scripts/run.sh delete mode 100644 codeforces/962/scripts/utils.sh delete mode 100644 codeforces/964/compile_flags.txt delete mode 100644 codeforces/970/compile_flags.txt delete mode 100644 codeforces/970/debug_flags.txt delete mode 100644 codeforces/970/scripts/debug.sh delete mode 100644 codeforces/970/scripts/run.sh delete mode 100644 codeforces/970/scripts/utils.sh delete mode 100644 codeforces/971/compile_flags.txt delete mode 100644 codeforces/974/compile_flags.txt delete mode 100644 codeforces/981/compile_flags.txt delete mode 100644 codeforces/981/debug_flags.txt delete mode 100644 codeforces/981/scripts/debug.sh delete mode 100644 codeforces/981/scripts/run.sh delete mode 100644 codeforces/981/scripts/utils.sh delete mode 100644 codeforces/991/compile_flags.txt delete mode 100644 codeforces/993/compile_flags.txt delete mode 100644 codeforces/993/debug_flags.txt delete mode 100644 codeforces/993/scripts/debug.sh delete mode 100644 codeforces/993/scripts/run.sh delete mode 100644 codeforces/993/scripts/utils.sh delete mode 100644 codeforces/995/compile_flags.txt delete mode 100644 codeforces/995/debug_flags.txt delete mode 100644 codeforces/995/scripts/debug.sh delete mode 100644 codeforces/995/scripts/run.sh delete mode 100644 codeforces/995/scripts/utils.sh delete mode 100644 codeforces/996/compile_flags.txt delete mode 100644 codeforces/998/compile_flags.txt delete mode 100644 codeforces/998/debug_flags.txt delete mode 100644 codeforces/998/scripts/debug.sh delete mode 100644 codeforces/998/scripts/run.sh delete mode 100644 codeforces/998/scripts/utils.sh diff --git a/codeforces/1003/compile_flags.txt b/codeforces/1003/compile_flags.txt deleted file mode 100644 index 0adea68..0000000 --- a/codeforces/1003/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/1006/compile_flags.txt b/codeforces/1006/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/1006/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/1009/compile_flags.txt b/codeforces/1009/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/1009/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/1013/compile_flags.txt b/codeforces/1013/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/1013/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/1016/compile_flags.txt b/codeforces/1016/compile_flags.txt deleted file mode 100644 index 559f9a4..0000000 --- a/codeforces/1016/compile_flags.txt +++ /dev/null @@ -1,21 +0,0 @@ --Wall --Wextra --Wshadow --Wnon-virtual-dtor --Wold-style-cast --Wcast-align --Wunused --Woverloaded-virtual --Wpedantic --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wuseless-cast --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --DLOCAL --std=c++23 diff --git a/codeforces/1017/compile_flags.txt b/codeforces/1017/compile_flags.txt deleted file mode 100644 index 6d76ca1..0000000 --- a/codeforces/1017/compile_flags.txt +++ /dev/null @@ -1,24 +0,0 @@ --std=c++20 --Wall --Wextra --Wshadow --Wnon-virtual-dtor --Wold-style-cast --Wcast-align --Wunused --Woverloaded-virtual --Wpedantic --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wuseless-cast --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL diff --git a/codeforces/1020/compile_flags.txt b/codeforces/1020/compile_flags.txt deleted file mode 100644 index 5725a8c..0000000 --- a/codeforces/1020/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/1020/debug_flags.txt b/codeforces/1020/debug_flags.txt deleted file mode 100644 index 03cba1b..0000000 --- a/codeforces/1020/debug_flags.txt +++ /dev/null @@ -1,12 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC diff --git a/codeforces/1020/scripts/debug.sh b/codeforces/1020/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/1020/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1020/scripts/run.sh b/codeforces/1020/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1020/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1020/scripts/utils.sh b/codeforces/1020/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/1020/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/1029/compile_flags.txt b/codeforces/1029/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/1029/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/1029/debug_flags.txt b/codeforces/1029/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/1029/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/1029/scripts/debug.sh b/codeforces/1029/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/1029/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1029/scripts/run.sh b/codeforces/1029/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1029/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1029/scripts/utils.sh b/codeforces/1029/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/1029/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/1032/compile_flags.txt b/codeforces/1032/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/1032/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/1032/debug_flags.txt b/codeforces/1032/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/1032/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/1032/scripts/debug.sh b/codeforces/1032/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/1032/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/1032/scripts/run.sh b/codeforces/1032/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1032/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1032/scripts/utils.sh b/codeforces/1032/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/1032/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/1034/compile_flags.txt b/codeforces/1034/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/1034/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/1034/debug_flags.txt b/codeforces/1034/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/1034/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/1034/scripts/debug.sh b/codeforces/1034/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/1034/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/1034/scripts/run.sh b/codeforces/1034/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1034/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1034/scripts/utils.sh b/codeforces/1034/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/1034/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/1037/compile_flags.txt b/codeforces/1037/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/1037/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/1037/debug_flags.txt b/codeforces/1037/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/1037/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/1037/scripts/debug.sh b/codeforces/1037/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/1037/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/1037/scripts/run.sh b/codeforces/1037/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1037/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1037/scripts/utils.sh b/codeforces/1037/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/1037/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/1043/compile_flags.txt b/codeforces/1043/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/1043/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/1043/debug_flags.txt b/codeforces/1043/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/1043/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/1043/scripts/debug.sh b/codeforces/1043/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/1043/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/1043/scripts/run.sh b/codeforces/1043/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/1043/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/1043/scripts/utils.sh b/codeforces/1043/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/1043/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/431/compile_flags.txt b/codeforces/431/compile_flags.txt deleted file mode 100644 index ebd5be8..0000000 --- a/codeforces/431/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++20 --Wall --Wextra --Wshadow --DLOCAL diff --git a/codeforces/640/compile_flags.txt b/codeforces/640/compile_flags.txt deleted file mode 100644 index ebd5be8..0000000 --- a/codeforces/640/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++20 --Wall --Wextra --Wshadow --DLOCAL diff --git a/codeforces/762/compile_flags.txt b/codeforces/762/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/762/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/762/debug_flags.txt b/codeforces/762/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/762/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/762/scripts/debug.sh b/codeforces/762/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/762/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/762/scripts/run.sh b/codeforces/762/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/762/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/762/scripts/utils.sh b/codeforces/762/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/762/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/784/compile_flags.txt b/codeforces/784/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/784/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/784/debug_flags.txt b/codeforces/784/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/784/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/784/scripts/debug.sh b/codeforces/784/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/784/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/784/scripts/run.sh b/codeforces/784/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/784/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/784/scripts/utils.sh b/codeforces/784/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/784/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/790/compile_flags.txt b/codeforces/790/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/790/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/790/debug_flags.txt b/codeforces/790/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/790/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/790/scripts/debug.sh b/codeforces/790/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/790/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/790/scripts/run.sh b/codeforces/790/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/790/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/790/scripts/utils.sh b/codeforces/790/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/790/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/799/compile_flags.txt b/codeforces/799/compile_flags.txt deleted file mode 100644 index 559f9a4..0000000 --- a/codeforces/799/compile_flags.txt +++ /dev/null @@ -1,21 +0,0 @@ --Wall --Wextra --Wshadow --Wnon-virtual-dtor --Wold-style-cast --Wcast-align --Wunused --Woverloaded-virtual --Wpedantic --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wuseless-cast --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --DLOCAL --std=c++23 diff --git a/codeforces/806/compile_flags.txt b/codeforces/806/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/806/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/806/debug_flags.txt b/codeforces/806/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/806/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/806/scripts/debug.sh b/codeforces/806/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/806/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/806/scripts/run.sh b/codeforces/806/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/806/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/806/scripts/utils.sh b/codeforces/806/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/806/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/817/compile_flags.txt b/codeforces/817/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/817/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/817/debug_flags.txt b/codeforces/817/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/817/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/817/scripts/debug.sh b/codeforces/817/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/817/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/817/scripts/run.sh b/codeforces/817/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/817/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/817/scripts/utils.sh b/codeforces/817/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/817/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/827/compile_flags.txt b/codeforces/827/compile_flags.txt deleted file mode 100644 index e88797b..0000000 --- a/codeforces/827/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --godbolt-compiler=g143 --std=c++23 diff --git a/codeforces/827/debug_flags.txt b/codeforces/827/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/827/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/827/scripts/debug.sh b/codeforces/827/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/827/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/827/scripts/run.sh b/codeforces/827/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/827/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/827/scripts/utils.sh b/codeforces/827/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/827/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/835/compile_flags.txt b/codeforces/835/compile_flags.txt deleted file mode 100644 index e88797b..0000000 --- a/codeforces/835/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --godbolt-compiler=g143 --std=c++23 diff --git a/codeforces/835/debug_flags.txt b/codeforces/835/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/835/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/835/scripts/debug.sh b/codeforces/835/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/835/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/835/scripts/run.sh b/codeforces/835/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/835/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/835/scripts/utils.sh b/codeforces/835/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/835/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/849/compile_flags.txt b/codeforces/849/compile_flags.txt deleted file mode 100644 index 559f9a4..0000000 --- a/codeforces/849/compile_flags.txt +++ /dev/null @@ -1,21 +0,0 @@ --Wall --Wextra --Wshadow --Wnon-virtual-dtor --Wold-style-cast --Wcast-align --Wunused --Woverloaded-virtual --Wpedantic --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wuseless-cast --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --DLOCAL --std=c++23 diff --git a/codeforces/859/compile_flags.txt b/codeforces/859/compile_flags.txt deleted file mode 100644 index 58efdbe..0000000 --- a/codeforces/859/compile_flags.txt +++ /dev/null @@ -1,22 +0,0 @@ --Wall --Wextra --Wshadow --Wnon-virtual-dtor --Wold-style-cast --Wcast-align --Wunused --Woverloaded-virtual --Wpedantic --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wuseless-cast --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/871/compile_flags.txt b/codeforces/871/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/871/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/874/compile_flags.txt b/codeforces/874/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/874/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/874/debug_flags.txt b/codeforces/874/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/874/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/874/scripts/debug.sh b/codeforces/874/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/874/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/874/scripts/run.sh b/codeforces/874/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/874/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/874/scripts/utils.sh b/codeforces/874/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/874/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/886/compile_flags.txt b/codeforces/886/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/886/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/886/debug_flags.txt b/codeforces/886/debug_flags.txt deleted file mode 100644 index af1b521..0000000 --- a/codeforces/886/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++20 diff --git a/codeforces/886/scripts/debug.sh b/codeforces/886/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/886/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/886/scripts/run.sh b/codeforces/886/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/886/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/886/scripts/utils.sh b/codeforces/886/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/886/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/888/compile_flags.txt b/codeforces/888/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/888/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/888/debug_flags.txt b/codeforces/888/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/888/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/888/scripts/debug.sh b/codeforces/888/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/888/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/888/scripts/run.sh b/codeforces/888/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/888/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/888/scripts/utils.sh b/codeforces/888/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/888/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/891/compile_flags.txt b/codeforces/891/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/891/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/894/compile_flags.txt b/codeforces/894/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/894/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/895/compile_flags.txt b/codeforces/895/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/895/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/898/compile_flags.txt b/codeforces/898/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/898/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/898/debug_flags.txt b/codeforces/898/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/898/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/898/scripts/debug.sh b/codeforces/898/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/898/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/898/scripts/run.sh b/codeforces/898/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/898/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/898/scripts/utils.sh b/codeforces/898/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/898/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/900/compile_flags.txt b/codeforces/900/compile_flags.txt deleted file mode 100644 index 504aea8..0000000 --- a/codeforces/900/compile_flags.txt +++ /dev/null @@ -1,6 +0,0 @@ --Wall --Wextra --Wpedantic --Wshadow --DLOCAL --std=c++23 diff --git a/codeforces/903/compile_flags.txt b/codeforces/903/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/903/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/903/debug_flags.txt b/codeforces/903/debug_flags.txt deleted file mode 100644 index af1b521..0000000 --- a/codeforces/903/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++20 diff --git a/codeforces/903/scripts/debug.sh b/codeforces/903/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/903/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/903/scripts/run.sh b/codeforces/903/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/903/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/903/scripts/utils.sh b/codeforces/903/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/903/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/918/compile_flags.txt b/codeforces/918/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/918/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/918/debug_flags.txt b/codeforces/918/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/918/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/918/scripts/debug.sh b/codeforces/918/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/918/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/918/scripts/run.sh b/codeforces/918/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/918/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/918/scripts/utils.sh b/codeforces/918/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/918/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/920/compile_flags.txt b/codeforces/920/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/920/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/920/debug_flags.txt b/codeforces/920/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/920/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/920/scripts/debug.sh b/codeforces/920/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/920/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/920/scripts/run.sh b/codeforces/920/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/920/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/920/scripts/utils.sh b/codeforces/920/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/920/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/923/compile_flags.txt b/codeforces/923/compile_flags.txt deleted file mode 100644 index 6817adc..0000000 --- a/codeforces/923/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wshadow --DLOCAL diff --git a/codeforces/928/compile_flags.txt b/codeforces/928/compile_flags.txt deleted file mode 100644 index 04a3a2a..0000000 --- a/codeforces/928/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 --std=c++23 diff --git a/codeforces/928/debug_flags.txt b/codeforces/928/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/928/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/928/scripts/debug.sh b/codeforces/928/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/928/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/928/scripts/run.sh b/codeforces/928/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/928/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/928/scripts/utils.sh b/codeforces/928/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/928/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/929/compile_flags.txt b/codeforces/929/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/929/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/929/debug_flags.txt b/codeforces/929/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/929/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/929/scripts/debug.sh b/codeforces/929/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/929/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/929/scripts/run.sh b/codeforces/929/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/929/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/929/scripts/utils.sh b/codeforces/929/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/929/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/935/compile_flags.txt b/codeforces/935/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/935/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/935/debug_flags.txt b/codeforces/935/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/935/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/935/scripts/debug.sh b/codeforces/935/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/935/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/935/scripts/run.sh b/codeforces/935/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/935/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/935/scripts/utils.sh b/codeforces/935/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/935/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/937/compile_flags.txt b/codeforces/937/compile_flags.txt deleted file mode 100644 index af7fb72..0000000 --- a/codeforces/937/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++20 diff --git a/codeforces/937/debug_flags.txt b/codeforces/937/debug_flags.txt deleted file mode 100644 index 03cba1b..0000000 --- a/codeforces/937/debug_flags.txt +++ /dev/null @@ -1,12 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC diff --git a/codeforces/937/scripts/debug.sh b/codeforces/937/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/937/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/937/scripts/run.sh b/codeforces/937/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/937/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/937/scripts/utils.sh b/codeforces/937/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/937/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/938/compile_flags.txt b/codeforces/938/compile_flags.txt deleted file mode 100644 index 0adea68..0000000 --- a/codeforces/938/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/944/compile_flags.txt b/codeforces/944/compile_flags.txt deleted file mode 100644 index af7fb72..0000000 --- a/codeforces/944/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++20 diff --git a/codeforces/944/debug_flags.txt b/codeforces/944/debug_flags.txt deleted file mode 100644 index 03cba1b..0000000 --- a/codeforces/944/debug_flags.txt +++ /dev/null @@ -1,12 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC diff --git a/codeforces/944/scripts/debug.sh b/codeforces/944/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/944/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/944/scripts/run.sh b/codeforces/944/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/944/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/944/scripts/utils.sh b/codeforces/944/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/944/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/952/compile_flags.txt b/codeforces/952/compile_flags.txt deleted file mode 100644 index b5d4b68..0000000 --- a/codeforces/952/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++20 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/957/compile_flags.txt b/codeforces/957/compile_flags.txt deleted file mode 100644 index 0adea68..0000000 --- a/codeforces/957/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/962/compile_flags.txt b/codeforces/962/compile_flags.txt deleted file mode 100644 index 17821f8..0000000 --- a/codeforces/962/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --pedantic-errors --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/962/debug_flags.txt b/codeforces/962/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/962/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/962/scripts/debug.sh b/codeforces/962/scripts/debug.sh deleted file mode 100644 index 1e63f37..0000000 --- a/codeforces/962/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" true -exit $? diff --git a/codeforces/962/scripts/run.sh b/codeforces/962/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/962/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/962/scripts/utils.sh b/codeforces/962/scripts/utils.sh deleted file mode 100644 index e4cf8f8..0000000 --- a/codeforces/962/scripts/utils.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - is_debug="$4" - - start=$(date '+%s.%N') - if [ -n "$is_debug" ]; then - asan="$(ldconfig -p | grep libasan.so | head -n1 | awk '{print $4}')" - LD_PRELOAD="$asan" timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - else - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - fi - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - test -n "$is_debug" && is_debug_string=true || is_debug_string=false - printf '\n[debug]: %s' "$is_debug_string" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/964/compile_flags.txt b/codeforces/964/compile_flags.txt deleted file mode 100644 index b5d4b68..0000000 --- a/codeforces/964/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++20 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/970/compile_flags.txt b/codeforces/970/compile_flags.txt deleted file mode 100644 index 5725a8c..0000000 --- a/codeforces/970/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/970/debug_flags.txt b/codeforces/970/debug_flags.txt deleted file mode 100644 index 03cba1b..0000000 --- a/codeforces/970/debug_flags.txt +++ /dev/null @@ -1,12 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC diff --git a/codeforces/970/scripts/debug.sh b/codeforces/970/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/970/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/970/scripts/run.sh b/codeforces/970/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/970/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/970/scripts/utils.sh b/codeforces/970/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/970/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/971/compile_flags.txt b/codeforces/971/compile_flags.txt deleted file mode 100644 index b5d4b68..0000000 --- a/codeforces/971/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++20 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/974/compile_flags.txt b/codeforces/974/compile_flags.txt deleted file mode 100644 index 6817adc..0000000 --- a/codeforces/974/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wshadow --DLOCAL diff --git a/codeforces/981/compile_flags.txt b/codeforces/981/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/981/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/981/debug_flags.txt b/codeforces/981/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/981/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/981/scripts/debug.sh b/codeforces/981/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/981/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/981/scripts/run.sh b/codeforces/981/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/981/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/981/scripts/utils.sh b/codeforces/981/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/981/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/991/compile_flags.txt b/codeforces/991/compile_flags.txt deleted file mode 100644 index e23b2ae..0000000 --- a/codeforces/991/compile_flags.txt +++ /dev/null @@ -1 +0,0 @@ --std=c++20 diff --git a/codeforces/993/compile_flags.txt b/codeforces/993/compile_flags.txt deleted file mode 100644 index 5373b01..0000000 --- a/codeforces/993/compile_flags.txt +++ /dev/null @@ -1,30 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/993/debug_flags.txt b/codeforces/993/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/993/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/993/scripts/debug.sh b/codeforces/993/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/993/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/993/scripts/run.sh b/codeforces/993/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/993/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/993/scripts/utils.sh b/codeforces/993/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/993/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/995/compile_flags.txt b/codeforces/995/compile_flags.txt deleted file mode 100644 index 5725a8c..0000000 --- a/codeforces/995/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wsign-conversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --std=c++23 diff --git a/codeforces/995/debug_flags.txt b/codeforces/995/debug_flags.txt deleted file mode 100644 index 03cba1b..0000000 --- a/codeforces/995/debug_flags.txt +++ /dev/null @@ -1,12 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC diff --git a/codeforces/995/scripts/debug.sh b/codeforces/995/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/995/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/995/scripts/run.sh b/codeforces/995/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/995/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/995/scripts/utils.sh b/codeforces/995/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/995/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -} diff --git a/codeforces/996/compile_flags.txt b/codeforces/996/compile_flags.txt deleted file mode 100644 index 0adea68..0000000 --- a/codeforces/996/compile_flags.txt +++ /dev/null @@ -1,5 +0,0 @@ --std=c++23 --Wall --Wextra --Wpedantic --Wshadow diff --git a/codeforces/998/compile_flags.txt b/codeforces/998/compile_flags.txt deleted file mode 100644 index e88797b..0000000 --- a/codeforces/998/compile_flags.txt +++ /dev/null @@ -1,31 +0,0 @@ --O2 --Wall --Wextra --Wpedantic --Wshadow --Wformat=2 --Wfloat-equal --Wlogical-op --Wshift-overflow=2 --Wnon-virtual-dtor --Wold-style-cast --Wcast-qual --Wuseless-cast --Wno-sign-promotion --Wcast-align --Wunused --Woverloaded-virtual --Wconversion --Wmisleading-indentation --Wduplicated-cond --Wduplicated-branches --Wlogical-op --Wnull-dereference --Wformat=2 --Wformat-overflow --Wformat-truncation --Wdouble-promotion --Wundef --DLOCAL --godbolt-compiler=g143 --std=c++23 diff --git a/codeforces/998/debug_flags.txt b/codeforces/998/debug_flags.txt deleted file mode 100644 index 62a0135..0000000 --- a/codeforces/998/debug_flags.txt +++ /dev/null @@ -1,14 +0,0 @@ --g3 --fsanitize=address,undefined --fsanitize=float-divide-by-zero --fsanitize=float-cast-overflow --fno-sanitize-recover=all --fstack-protector-all --fstack-usage --fno-omit-frame-pointer --fno-inline --ffunction-sections --D_GLIBCXX_DEBUG --D_GLIBCXX_DEBUG_PEDANTIC --DLOCAL --std=c++23 diff --git a/codeforces/998/scripts/debug.sh b/codeforces/998/scripts/debug.sh deleted file mode 100644 index 2979422..0000000 --- a/codeforces/998/scripts/debug.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -DBG_BIN="${BASE}.debug" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -DBG_BIN="build/$DBG_BIN" - -compile_source "$SRC" "$DBG_BIN" "$OUTPUT" @debug_flags.txt -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$DBG_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/998/scripts/run.sh b/codeforces/998/scripts/run.sh deleted file mode 100644 index ab9aa7d..0000000 --- a/codeforces/998/scripts/run.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -. ./scripts/utils.sh - -SRC="$1" -BASE=$(basename "$SRC" .cc) -INPUT="${BASE}.in" -OUTPUT="${BASE}.out" -RUN_BIN="${BASE}.run" - -test -d build || mkdir -p build -test -d io || mkdir -p io - -test -f "$INPUT" && test ! -f "io/$INPUT" && mv "$INPUT" "io/" -test -f "$OUTPUT" && test ! -f "io/$OUTPUT" && mv "$OUTPUT" "io/" - -test -f "io/$INPUT" || touch "io/$INPUT" -test -f "io/$OUTPUT" || touch "io/$OUTPUT" - -INPUT="io/$INPUT" -OUTPUT="io/$OUTPUT" -RUN_BIN="build/$RUN_BIN" - -compile_source "$SRC" "$RUN_BIN" "$OUTPUT" "" -CODE=$? -test $CODE -gt 0 && exit $CODE - -execute_binary "$RUN_BIN" "$INPUT" "$OUTPUT" -exit $? diff --git a/codeforces/998/scripts/utils.sh b/codeforces/998/scripts/utils.sh deleted file mode 100644 index e99b25b..0000000 --- a/codeforces/998/scripts/utils.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/sh - -execute_binary() { - binary="$1" - input="$2" - output="$3" - - start=$(date '+%s.%N') - timeout 2s ./"$binary" <"$input" >"$output" 2>&1 - CODE=$? - end=$(date '+%s.%N') - truncate -s "$(head -n 1000 "$output" | wc -c)" "$output" - - if [ $CODE -ge 124 ]; then - MSG='' - case $CODE in - 124) MSG='TIMEOUT' ;; - 128) MSG='SIGILL' ;; - 130) MSG='SIGABRT' ;; - 131) MSG='SIGBUS' ;; - 136) MSG='SIGFPE' ;; - 135) MSG='SIGSEGV' ;; - 137) MSG='SIGPIPE' ;; - 139) MSG='SIGTERM' ;; - esac - [ $CODE -ne 124 ] && sed -i '$d' "$output" - test -n "$MSG" && printf '\n[code]: %s (%s)' "$CODE" "$MSG" >>"$output" - else - printf '\n[code]: %s' "$CODE" >>"$output" - fi - - printf '\n[time]: %s ms' "$(awk "BEGIN {print ($end - $start) * 1000}")" >>$output - return $CODE -} - -compile_source() { - src="$1" - bin="$2" - output="$3" - flags="$4" - - test -f "$bin" && rm "$bin" || true - g++ @compile_flags.txt $flags "$src" -o "$bin" 2>"$output" - CODE=$? - - if [ $CODE -gt 0 ]; then - printf '\n[code]: %s' "$CODE" >>"$output" - return $CODE - else - echo '' >"$output" - return 0 - fi -}