771

command
v0.0.0-...-23e9799 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 6 Imported by: 0

README

771: しおり

  • 最大18冊の本の並び替えをしたときの、栞間距離なるものの最小値を求める問題。
  • 巡回セールスマン問題と同じく、すでに本棚に並べた本のうち、最後に並べた本のIDが必要となるため、O(n^2xn^2) のループを回すことになる。
  • 制限は2秒だったが、N=18程度ならばいけるらしい。
    • EDPCのO問題ではN=21でアウトだった。

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL