Skip to content

Commit

Permalink
良くわからないサンプルの削除
Browse files Browse the repository at this point in the history
  • Loading branch information
PonponJuice committed Nov 14, 2023
1 parent 21d3f5d commit bb73f06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion TSP/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function computeScore(input, output) {
if (output[i] == output[j]) err = (i + 1) + ", " + (j + 1) + "is same point";
}
}
return { score: parseInt(1e9 / answer), error: err };
return { score: answer, error: err };
}

function StringToArray(value) {
Expand Down
8 changes: 0 additions & 8 deletions TSP/visualizer.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,6 @@ <h1>
Score = 0
</p>

<div>
<!--visualizer本体-->

<svg xmlns="http://www.w3.org/2000/svg" id="vis" width="500" height="500" viewBox="-5 -5 510 510">
<line x1="0.000000" y1="0.000000" x2="500.000000" y2="500.000000" stroke="#000000" stroke-width="5.000000"/>
</svg>
</div>

<script src="https://pixijs.download/release/pixi.js"></script>
<script src="main.js"></script>
</body>
Expand Down

0 comments on commit bb73f06

Please sign in to comment.