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 06:02Victor 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 06:020121,114,611111,753,0001,171,0002,113,536expected "1021037 ", got "1021036 "
2Jun 28, 2026 06:020121,408,041111,996,0001,184,0002,113,536expected "1019207 ", got "1019206 "
3Jun 28, 2026 06:023,409120,387,184111,414,0001,114,0002,113,536
4Jun 28, 2026 06:023,412120,429,642111,429,0001,176,0002,113,536
5Jun 28, 2026 06:023,414120,791,709111,511,0001,173,0002,113,536
6Jun 28, 2026 06:023,417120,645,374111,682,0001,104,0002,113,536
7Jun 28, 2026 06:023,421120,626,809111,793,0001,121,0002,113,536
8Jun 28, 2026 06:023,423121,025,189111,793,0001,176,0002,113,536
9Jun 28, 2026 06:023,425121,115,515111,870,0001,187,0002,113,536