Skip to content

Commit aa6bdd0

Browse files
保存文件
1 parent 4d31468 commit aa6bdd0

File tree

8 files changed

+72
-556
lines changed

8 files changed

+72
-556
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.vscode

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "C/C++: g++.exe build and debug active file",
6+
"type": "cppdbg",
7+
"request": "launch",
8+
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
9+
"args": [],
10+
"stopAtEntry": false,
11+
"cwd": "${fileDirname}",
12+
"environment": [],
13+
"externalConsole": false,
14+
"MIMode": "gdb",
15+
"miDebuggerPath": "C:\\my\\software\\mingw64\\bin\\gdb.exe",
16+
"setupCommands": [
17+
{
18+
"description": "Enable pretty-printing for gdb",
19+
"text": "-enable-pretty-printing",
20+
"ignoreFailures": true
21+
}
22+
],
23+
"preLaunchTask": "C/C++: g++.exe build active file"
24+
}
25+
]
26+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"files.associations": {
3+
"*.cjson": "jsonc",
4+
"*.wxss": "css",
5+
"*.wxs": "javascript",
6+
"iostream": "cpp",
7+
"utility": "cpp",
8+
"iosfwd": "cpp"
9+
}
10+
}

.vscode/tasks.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"tasks": [
3+
{
4+
"type": "cppbuild",
5+
"label": "C/C++: g++.exe build active file",
6+
"command": "C:\\my\\software\\mingw64\\bin\\g++.exe",
7+
"args": [
8+
"-fdiagnostics-color=always",
9+
"-g",
10+
"${file}",
11+
"-o",
12+
"${fileDirname}\\${fileBasenameNoExtension}.exe"
13+
],
14+
"options": {
15+
"cwd": "${fileDirname}"
16+
},
17+
"problemMatcher": [
18+
"$gcc"
19+
],
20+
"group": "build",
21+
"detail": "调试器生成的任务。"
22+
}
23+
],
24+
"version": "2.0.0"
25+
}

final.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ int main()
241241
int j = 0;
242242
while (Q.size())
243243
{
244-
cout << "" << j + 1 << "邻点: " << (Tree[Q.top().first].pos[0] - b) * 1.0 / (1000000 * a) << " " << (Tree[Q.top().first].pos[1] - b) * 1.0 / (1000000 * a) << " " << Q.top().second << endl;
244+
cout << "" << K - j << "邻点: " << (Tree[Q.top().first].pos[0] - b) * 1.0 / (1000000 * a) << " " << (Tree[Q.top().first].pos[1] - b) * 1.0 / (1000000 * a) << " " << Q.top().second << endl;
245245
Q.pop();
246246
++j;
247247
}

hello.cpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

index.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)