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 17:25highloadLLMhighloadLLMError
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 17:260283,777,670245,102,00029,273,0002,117,632expected "1024614 ", got "1024613 "
2Jun 8, 2026 17:268,211280,209,041244,056,00026,921,0002,117,632
3Jun 8, 2026 17:268,287283,228,643245,970,00027,529,0002,117,632
4Jun 8, 2026 17:268,287282,823,510245,343,00028,158,0002,113,536
5Jun 8, 2026 17:268,290282,886,959245,669,00027,921,0002,117,632
6Jun 8, 2026 17:268,312284,100,537245,584,00028,713,0002,117,632
7Jun 8, 2026 17:268,344288,267,459246,529,00028,826,0002,117,632
8Jun 8, 2026 17:268,365285,822,958248,690,00027,355,0002,117,632
9Jun 8, 2026 17:268,413286,909,925247,803,00029,828,0002,117,632