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 11:22Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 02:43Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:110386,022,672329,521,00044,261,0002,113,536expected "2919929 ", got "1479602 "
2Sep 5, 2026 04:110419,551,168366,185,00044,768,0002,113,536expected "2919922 ", got "1479610 "
3Sep 5, 2026 04:110423,594,424370,054,00045,030,0002,113,536expected "2919936 ", got "1479610 "
4May 11, 2026 11:2311,084373,143,924322,759,00043,019,0002,113,536
5May 11, 2026 11:2311,091373,981,730322,837,00043,170,0002,113,536
6May 11, 2026 11:2311,115376,102,603324,453,00042,358,0002,113,536
7May 11, 2026 11:2311,149375,646,843324,708,00043,232,0002,113,536
8May 11, 2026 11:2311,168378,873,726325,019,00043,533,0002,113,536
9May 11, 2026 11:2311,173377,993,689324,859,00043,866,0002,113,536
10May 11, 2026 11:2311,179376,280,814325,224,00043,708,0002,113,536
11May 11, 2026 11:2311,271380,781,450328,215,00043,734,0002,113,536
12May 11, 2026 11:2311,277381,020,690328,568,00043,601,0002,113,536