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 listApr 27, 2026 20:59Alexander KrivolapovAlexander KrivolapovError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 14:18M-Rochat26.40CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 14:47035,842,87020,975,0003,222,0002,121,728expected "1000000 ", got "1000066 "
2May 17, 2026 14:47034,886,23520,835,0003,249,0002,125,824expected "1000000 ", got "1000066 "
3May 17, 2026 14:47033,184,23420,162,0004,205,0002,125,824expected "1000000 ", got "1000066 "
4Apr 27, 2026 21:0014,366495,693,092387,073,00087,016,0002,510,848
5Apr 27, 2026 21:0014,397489,759,501401,100,00074,018,0002,396,160
6Apr 27, 2026 21:0014,409493,218,706371,617,000103,893,0002,330,624
7Apr 27, 2026 21:0014,454494,901,236397,989,00078,997,0002,363,392
8Apr 27, 2026 21:0014,497499,110,473411,490,00066,917,0002,326,528
9Apr 27, 2026 21:0014,519500,067,736390,116,00089,026,0002,551,808
10Apr 27, 2026 21:0014,522491,081,473399,363,00079,872,0002,322,432
11Apr 27, 2026 21:0014,529494,996,657410,550,00068,924,0002,412,544
12Apr 27, 2026 21:0014,560498,824,993416,567,00063,933,0002,543,616