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 listMar 18, 2026 22:27Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:38029,796,05714,549,0004,597,0002,113,536expected "284753 ", got "237675 "
2Oct 31, 2026 17:380298,011,800283,184,0004,031,0002,113,536expected "2906391 ", got "1990378 "
3Oct 31, 2026 17:380298,101,311282,654,0004,349,0002,113,536expected "2901491 ", got "1986041 "
4Mar 18, 2026 22:2717,003593,870,788556,095,0005,000,0002,457,600
5Mar 18, 2026 22:2717,023592,563,383556,753,0004,997,0002,408,448
6Mar 18, 2026 22:2717,052587,563,880559,719,0002,998,0002,453,504
7Mar 18, 2026 22:2717,055596,866,904554,825,0007,997,0002,502,656
8Mar 18, 2026 22:2717,104592,574,642557,451,0006,993,0002,461,696
9Mar 18, 2026 22:2717,225594,127,855563,433,0004,994,0002,273,280
10Mar 18, 2026 22:2717,245597,101,295563,070,0006,000,0002,506,752
11Mar 18, 2026 22:2717,264597,993,729563,714,0005,996,0002,273,280
12Mar 18, 2026 22:2717,347594,326,069567,456,0004,995,0002,273,280