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 22, 2026 09:31Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 16:57Tomislav Tunkovic27.11CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 17:150265,608,770219,090,00037,937,0002,113,536expected "2919944 ", got "1439995 "
2Sep 4, 2026 17:150266,389,781219,380,00037,852,0002,113,536expected "2919940 ", got "1439989 "
3Sep 4, 2026 17:150266,938,674219,740,00038,628,0002,113,536expected "2919925 ", got "1439988 "
4Jun 22, 2026 09:345,239180,436,316136,105,00036,800,0002,113,536
5Jun 22, 2026 09:345,241180,957,501136,015,00036,951,0002,113,536
6Jun 22, 2026 09:345,241180,533,442136,151,00036,829,0002,113,536
7Jun 22, 2026 09:345,249181,489,352136,261,00036,979,0002,113,536
8Jun 22, 2026 09:345,255181,475,471136,673,00036,768,0002,113,536
9Jun 22, 2026 09:345,256181,040,898136,532,00036,935,0002,113,536
10Jun 22, 2026 09:345,264181,575,806137,007,00036,708,0002,113,536
11Jun 22, 2026 09:345,271181,613,165136,248,00037,727,0002,113,536
12Jun 22, 2026 09:345,280182,165,075136,642,00037,600,0002,113,536