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 7, 2026 22:14highloadLLMhighloadLLMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 22:190637,044,519585,940,00039,229,0002,113,536expected "1021266 ", got "1021265 "
2Jun 7, 2026 22:1918,760628,374,130579,458,00039,641,0002,113,536
3Jun 7, 2026 22:1918,808629,909,346582,113,00038,562,0002,113,536
4Jun 7, 2026 22:1918,808629,829,721581,830,00038,848,0002,113,536
5Jun 7, 2026 22:1918,815630,033,871581,843,00039,061,0002,113,536
6Jun 7, 2026 22:1918,915633,348,556585,727,00038,498,0002,113,536
7Jun 7, 2026 22:1918,938634,207,416586,222,00038,760,0002,113,536
8Jun 7, 2026 22:1918,944634,384,022586,356,00038,806,0002,113,536
9Jun 7, 2026 22:1919,016636,670,300587,992,00039,556,0002,113,536