Unique strings Sergey Svistunov

Count the exact number of unique tokens as fast as possible.

Input

One token per line on STDIN:

JWXcKKaWzvFL5
Rof
3ztCpA
5wHcGN
*UiEMthaTS*g

Output

Print the exact count of unique tokens to STDOUT.

Constraints

  • Character set: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@#%*
  • Maximum token length: 16
  • Approximately 1,000,000 unique tokens
Back to listJul 28, 2021 11:47amdfamdfError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 28, 2021 11:4700000Error: exit with code 2: panic: runtime error: index out of range [221] with length 221 goroutine 7 [running]: internal/fmtsort.Sort(0x55bb86e3ca00, 0xc000054150, 0x15, 0x55bb86e3ca00) /usr/lib/go-1.13/src/internal/fmtsort/sort.go:60 +0x311 fmt.(*pp)...stderr