Skip to content

Commit

Permalink
partial: 20c dijkstra
Browse files Browse the repository at this point in the history
  • Loading branch information
ashpool37 committed Sep 17, 2024
1 parent 24ab0eb commit 30a20ab
Show file tree
Hide file tree
Showing 8 changed files with 534 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ Author's Codeforces profile: [Ashpool](https://codeforces.com/profile/Ashpool)
## Statistics

* Total problems in Codeforces problem set: 9790
* Problems started: 228
* Problems started: 229
* Problems solved: 227
* Problems not solved: 1
* Problems not solved: 2

Percentage of solved problems: 2.3187%

Expand Down
2 changes: 2 additions & 0 deletions problems/20c-dijkstra/.clangd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
Add: [-std=c++23, -Wall, -Wextra]
Empty file added problems/20c-dijkstra/.unsolved
Empty file.
13 changes: 13 additions & 0 deletions problems/20c-dijkstra/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug Dijkstra?",
"program": "${workspaceFolder}/20c-dijkstra.out",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
20 changes: 20 additions & 0 deletions problems/20c-dijkstra/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.POSIX:
CXX = clang++
CXXFLAGS = -g -std=c++23 -Wall -Wextra

SRCS = main.cpp
OBJS = $(SRCS:.cpp=.o)

EXE = 20c-dijkstra.out

all: $(EXE)

$(EXE): $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^

clean:
rm -f $(EXE) $(OBJS)
run: $(EXE)
./$(EXE)

.PHONY: all clean run
3 changes: 3 additions & 0 deletions problems/20c-dijkstra/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 20C. Dijkstra?

[Problem statement on Codeforces](https://codeforces.com/problemset/problem/20/C?locale=en).
Loading

0 comments on commit 30a20ab

Please sign in to comment.