last of div 4
This commit is contained in:
parent
1e18e29af4
commit
78ead22797
80 changed files with 2214 additions and 11 deletions
|
|
@ -32,3 +32,7 @@ CompileFlags:
|
|||
-DLOCAL
|
||||
-std=c++20
|
||||
-Wno-unknown-pragmas
|
||||
-std=c++23
|
||||
-std=c++23
|
||||
-std=c++23
|
||||
-std=c++23
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ void solve() {
|
|||
cin >> _;
|
||||
string s;
|
||||
cin >> s;
|
||||
i32 ans = 1;
|
||||
i32 ans = 2;
|
||||
for (auto c : s) {
|
||||
ans = max(ans, c - 'a' + 1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
-Wunused
|
||||
-Woverloaded-virtual
|
||||
-Wconversion
|
||||
-Wsign-conversion
|
||||
-Wmisleading-indentation
|
||||
-Wduplicated-cond
|
||||
-Wduplicated-branches
|
||||
|
|
@ -28,4 +27,5 @@
|
|||
-Wdouble-promotion
|
||||
-Wundef
|
||||
-DLOCAL
|
||||
-std=c++20
|
||||
-godbolt-compiler=g143
|
||||
-std=c++23
|
||||
|
|
|
|||
|
|
@ -10,3 +10,5 @@
|
|||
-ffunction-sections
|
||||
-D_GLIBCXX_DEBUG
|
||||
-D_GLIBCXX_DEBUG_PEDANTIC
|
||||
-DLOCAL
|
||||
-std=c++23
|
||||
|
|
|
|||
|
|
@ -9,4 +9,4 @@
|
|||
8
|
||||
|
||||
[code]: 0
|
||||
[time]: 4.3807 ms
|
||||
[time]: 4.3807 ms
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
.PHONY: run debug clean setup init
|
||||
|
||||
VERSION ?= 20
|
||||
|
||||
SRC = $(word 2,$(MAKECMDGOALS))
|
||||
|
||||
.SILENT:
|
||||
|
|
@ -17,9 +19,9 @@ setup:
|
|||
test -d build || mkdir -p build
|
||||
test -d io || mkdir -p io
|
||||
test -d scripts || mkdir -p scripts
|
||||
test -f compile_flags.txt || cp $(HOME)/.config/cp-template/compile_flags.txt .
|
||||
test -f .clangd || cp $(HOME)/.config/cp-template/.clangd .
|
||||
test -f .clang-format || cp $(HOME)/.config/cp-template/.clang-format .
|
||||
test -f compile_flags.txt || cp $(HOME)/.config/cp-template/compile_flags.txt . && echo -std=c++$(VERSION) >>compile_flags.txt
|
||||
test -f .clangd || cp $(HOME)/.config/cp-template/.clangd . && echo -e "\t\t-std=c++$(VERSION)" >>.clangd
|
||||
|
||||
init:
|
||||
make setup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue