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:11highloadLLMhighloadLLMError
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:120287,322,036249,654,00028,433,0002,113,536expected "1022108 ", got "1022107 "
2Jun 8, 2026 17:128,343284,660,896248,174,00027,171,0002,117,632
3Jun 8, 2026 17:128,370285,495,566247,064,00029,158,0002,117,632
4Jun 8, 2026 17:128,392286,251,652249,185,00027,760,0002,117,632
5Jun 8, 2026 17:128,394286,461,724248,927,00028,078,0002,117,632
6Jun 8, 2026 17:128,401286,553,085248,744,00028,495,0002,117,632
7Jun 8, 2026 17:128,410286,886,042249,543,00028,019,0002,117,632
8Jun 8, 2026 17:128,420287,136,952249,400,00028,465,0002,117,632
9Jun 8, 2026 17:128,459288,547,488250,330,00028,838,0002,117,632