Documentation ¶
Index ¶
- func CalcRating[T RatingRater](list []T) error
- func CopyFile(src, dst string) (int64, error)
- func Map[T any, M any](s []T, f func(T) M) []M
- func RandomString(n int) string
- func TopoSort(size int, dependon func(i, j int) bool) (res []int, err error)
- type ByteValue
- type Checksum
- type CtntType
- type HashValue
- type LangTag
- type RatingRater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalcRating ¶ added in v0.0.29
func CalcRating[T RatingRater](list []T) error
注意 list 应按照比赛成绩从高到底排序 implementing https://codeforces.com/blog/entry/20762 https://codeforces.com/blog/entry/77890
func RandomString ¶
Types ¶
type Checksum ¶
type Checksum [32]byte
comparable
func FileChecksum ¶
SHA256 hash for file content. for any error, return empty hash
func ReaderChecksum ¶
type RatingRater ¶ added in v0.0.29
Click to show internal directories.
Click to hide internal directories.