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 listMay 11, 2026 12:15Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 04:58Tomislav Tunkovic19.40CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 05:320339,346,110287,059,00040,236,0002,113,536expected "2919951 ", got "1479621 "
2Sep 5, 2026 05:320373,160,822324,118,00040,426,0002,113,536expected "2919943 ", got "1479619 "
3Sep 5, 2026 05:320372,260,182323,140,00040,553,0002,113,536expected "2919944 ", got "1479619 "
4May 11, 2026 12:169,103307,709,119261,258,00039,154,0002,113,536
5May 11, 2026 12:169,154309,484,592261,608,00040,491,0002,113,536
6May 11, 2026 12:169,159311,570,700262,861,00039,404,0002,113,536
7May 11, 2026 12:169,171310,030,968262,695,00039,951,0002,113,536
8May 11, 2026 12:169,179311,617,741262,047,00040,892,0002,113,536
9May 11, 2026 12:169,185311,033,590264,365,00038,763,0002,113,536
10May 11, 2026 12:169,192313,852,959263,836,00039,521,0002,113,536
11May 11, 2026 12:169,193313,526,857264,703,00038,672,0002,113,536
12May 11, 2026 12:169,316315,289,728267,862,00039,597,0002,113,536