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 10, 2026 04:34Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 16:57Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 17:200454,823,868406,667,00039,576,0002,113,536expected "2919931 ", got "1444065 "
2Sep 4, 2026 17:200455,577,806407,768,00039,122,0002,113,536expected "2919941 ", got "1444069 "
3Sep 4, 2026 17:200457,398,040409,480,00039,437,0002,113,536expected "2919936 ", got "1444075 "
4Jun 10, 2026 04:416,487221,713,718175,812,00038,283,0002,113,536
5Jun 10, 2026 04:416,493221,909,539176,921,00037,374,0002,113,536
6Jun 10, 2026 04:416,499222,023,753176,109,00038,365,0002,113,536
7Jun 10, 2026 04:416,501222,183,156176,176,00038,361,0002,113,536
8Jun 10, 2026 04:416,510222,474,088176,532,00038,323,0002,113,536
9Jun 10, 2026 04:416,533223,174,950177,257,00038,357,0002,113,536
10Jun 10, 2026 04:416,536223,238,139177,311,00038,409,0002,113,536
11Jun 10, 2026 04:416,550223,791,956177,760,00038,412,0002,113,536
12Jun 10, 2026 04:416,594225,351,221179,018,00038,604,0002,113,536