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 17:16Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 04:57Tomislav Tunkovic19.82CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 05:310291,680,751244,631,00038,517,0002,113,536expected "2919933 ", got "1479611 "
2Sep 5, 2026 05:310290,230,204243,480,00038,231,0002,113,536expected "2919936 ", got "1479616 "
3Sep 5, 2026 05:310290,220,446243,506,00038,265,0002,113,536expected "2919932 ", got "1479614 "
4May 11, 2026 17:176,982239,555,322194,060,00036,354,0002,113,536
5May 11, 2026 17:176,990239,683,833193,219,00037,453,0002,113,536
6May 11, 2026 17:177,010241,669,599194,036,00037,315,0002,113,536
7May 11, 2026 17:177,021241,964,826194,071,00037,623,0002,113,536
8May 11, 2026 17:177,021239,857,496193,979,00037,738,0002,113,536
9May 11, 2026 17:177,034242,329,389194,554,00037,586,0002,113,536
10May 11, 2026 17:177,036240,170,490194,110,00038,103,0002,113,536
11May 11, 2026 17:177,036241,541,433194,666,00037,546,0002,113,536
12May 11, 2026 17:177,083241,180,168197,006,00036,762,0002,113,536