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 23:24highloadLLMhighloadLLMError
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 23:280764,456,582715,553,00039,689,0002,113,536expected "1023579 ", got "1023577 "
2Jun 7, 2026 23:2822,967767,231,584717,873,00040,062,0002,113,536
3Jun 7, 2026 23:2823,008771,041,421718,164,00041,104,0002,113,536
4Jun 7, 2026 23:2823,010768,486,911718,461,00040,873,0002,113,536
5Jun 7, 2026 23:2823,010768,532,463718,338,00041,015,0002,113,536
6Jun 7, 2026 23:2823,121772,349,752722,692,00040,306,0002,113,536
7Jun 7, 2026 23:2823,159773,454,146723,850,00040,407,0002,113,536
8Jun 7, 2026 23:2823,172774,021,163724,379,00040,320,0002,113,536
9Jun 7, 2026 23:2823,235775,829,441726,128,00040,633,0002,113,536