質問編集履歴
5
インデント
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,13 +4,7 @@
|
|
4
4
|
|
5
5
|
コード
|
6
6
|
|
7
|
-
``#include <stdio.h>
|
7
|
+
``#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h>
|
8
|
-
|
9
|
-
#include <stdlib.h>
|
10
|
-
|
11
|
-
#include <string.h>
|
12
|
-
|
13
|
-
#include <math.h>
|
14
8
|
|
15
9
|
|
16
10
|
|
4
インデント
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,7 +4,13 @@
|
|
4
4
|
|
5
5
|
コード
|
6
6
|
|
7
|
-
``#include <stdio.h>
|
7
|
+
``#include <stdio.h>
|
8
|
+
|
9
|
+
#include <stdlib.h>
|
10
|
+
|
11
|
+
#include <string.h>
|
12
|
+
|
13
|
+
#include <math.h>
|
8
14
|
|
9
15
|
|
10
16
|
|
3
インデント
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,13 +4,7 @@
|
|
4
4
|
|
5
5
|
コード
|
6
6
|
|
7
|
-
``#include <stdio.h>
|
7
|
+
``#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h>
|
8
|
-
|
9
|
-
#include <stdlib.h>
|
10
|
-
|
11
|
-
#include <string.h>
|
12
|
-
|
13
|
-
#include <math.h>
|
14
8
|
|
15
9
|
|
16
10
|
|
2
ソースコードを打ち込み
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,9 +4,7 @@
|
|
4
4
|
|
5
5
|
コード
|
6
6
|
|
7
|
-
``
|
8
|
-
|
9
|
-
#include <stdio.h>
|
7
|
+
``#include <stdio.h>
|
10
8
|
|
11
9
|
#include <stdlib.h>
|
12
10
|
|
1
ソースコードを打ち込み方法を改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,10 @@
|
|
1
1
|
今,c言語でNN法やった後に改善法で2-opt法を実行するプログラムを書いているんですけど、アルゴリズムは、理解できたですけどうまく書きあらわすことができないんで皆様の力を貸して欲しいです。その回答をみながら勉強させて欲しいです。
|
2
|
+
|
3
|
+
```c言語,
|
4
|
+
|
5
|
+
コード
|
6
|
+
|
7
|
+
``
|
2
8
|
|
3
9
|
#include <stdio.h>
|
4
10
|
|