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 20, 2026 12: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 20, 2026 12:500218,516,830172,946,00038,179,0002,113,536expected "1019923 ", got "1019922 "
2Jun 20, 2026 12:506,403218,763,578173,097,00038,203,0002,113,536
3Jun 20, 2026 12:506,406220,832,381173,206,00038,202,0002,113,536
4Jun 20, 2026 12:506,412219,154,809173,333,00038,270,0002,113,536
5Jun 20, 2026 12:506,413219,126,283173,372,00038,276,0002,113,536
6Jun 20, 2026 12:506,433220,314,667173,907,00038,402,0002,113,536
7Jun 20, 2026 12:506,440220,101,021174,096,00038,442,0002,113,536
8Jun 20, 2026 12:506,443220,219,607175,204,00037,444,0002,113,536
9Jun 20, 2026 12:506,449220,255,972174,206,00038,619,0002,113,536