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 listAug 1, 2026 19:53CodeReclaimersCodeReclaimersError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:33Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:170397,973,578367,627,00019,255,0002,117,632expected "2901726 ", got "2655966 "
2Oct 31, 2026 17:170399,435,410368,271,00019,335,0002,113,536expected "2904533 ", got "2658773 "
3Oct 31, 2026 17:176112,716,67502,027,0002,121,728
4Aug 1, 2026 19:545,551193,535,732178,963,0004,237,0002,113,536
5Aug 1, 2026 19:545,552193,703,239178,859,0004,374,0002,113,536
6Aug 1, 2026 19:545,554193,458,332178,941,0004,364,0002,113,536
7Aug 1, 2026 19:545,560194,226,540179,251,0004,233,0002,113,536
8Aug 1, 2026 19:545,575194,032,782179,634,0004,348,0002,113,536
9Aug 1, 2026 19:545,585195,171,817179,913,0004,410,0002,113,536
10Aug 1, 2026 19:545,610195,203,065180,756,0004,400,0002,113,536
11Aug 1, 2026 19:545,758201,471,159185,506,0004,539,0002,113,536
12Aug 1, 2026 19:545,806202,596,762187,046,0004,575,0002,113,536