This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func solve() { | |
| n, k := 5, 3 | |
| perm := make([]int, k) | |
| for i := 0; i < k; i++ { | |
| perm[i] = i | |
| } | |
| var f func() bool | |
| f = func() bool { | |
| for ti := k - 1; ti >= 0; ti-- { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math/bits" | |
| ) | |
| const ( | |
| INF = 1 << 60 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| const ( | |
| INF = 1 << 60 | |
| ) | |
| type Note[T any] struct { | |
| page *Page[T] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/exp/constraints" | |
| "sort" | |
| ) | |
| const ( | |
| INF = 1 << 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/exp/constraints" | |
| ) | |
| const ( | |
| INF = 1 << 60 | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/exp/constraints" | |
| ) | |
| // 汎用Priority Queue | |
| type PQ[T comparable] struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "golang.org/x/exp/constraints" | |
| "sort" | |
| ) | |
| const ( | |
| INF = 1 << 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| //-------------------- BitVector (1ビットを圧縮保持) --------------------// | |
| type BitVector struct { | |
| n int // ベクトル長 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| // ABC344 E Insert or Erase | |
| // https://atcoder.jp/contests/abc344/tasks/abc344_e | |
| // List 双方向リンクリスト | |
| type List[T comparable] struct { | |
| first *element[T] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| const ( | |
| INF = 1 << 60 | |
| ) |
NewerOlder