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 8, 2026 00:55highloadLLMhighloadLLMError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 00:560592,438,222545,133,00038,007,0002,113,536expected "1024653 ", got "1024652 "
2Jun 8, 2026 00:5617,550588,348,682540,350,00038,809,0002,113,536
3Jun 8, 2026 00:5617,662592,048,930544,744,00038,103,0002,113,536
4Jun 8, 2026 00:5617,678592,656,299545,106,00038,275,0002,113,536
5Jun 8, 2026 00:5617,697593,165,085543,731,00040,270,0002,113,536
6Jun 8, 2026 00:5617,745595,446,126547,076,00038,526,0002,113,536
7Jun 8, 2026 00:5617,762595,413,164547,991,00038,182,0002,113,536
8Jun 8, 2026 00:5617,822597,368,084549,839,00038,295,0002,113,536
9Jun 8, 2026 00:5617,981602,535,073555,081,00038,293,0002,113,536