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 listJun 28, 2026 09:49Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 28, 2026 09:510120,463,670111,213,0001,185,0002,113,536expected "1024714 ", got "1024713 "
2Jun 28, 2026 09:513,369118,913,990110,102,0001,103,0002,113,536
3Jun 28, 2026 09:513,377120,699,927110,301,0001,145,0002,113,536
4Jun 28, 2026 09:513,377119,475,522110,261,0001,182,0002,113,536
5Jun 28, 2026 09:513,380119,731,639110,377,0001,174,0002,113,536
6Jun 28, 2026 09:513,384119,371,200110,568,0001,117,0002,113,536
7Jun 28, 2026 09:513,386119,493,244110,598,0001,169,0002,113,536
8Jun 28, 2026 09:513,386119,578,589110,567,0001,173,0002,113,536
9Jun 28, 2026 09:513,390119,599,501110,763,0001,108,0002,113,536