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 listJan 7, 2026 14:08zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 06:58Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 06:58011,060,9701,037,0002,223,0002,121,728expected "16384 ", got "378 "stderr
2Jul 4, 2026 06:58010,961,1371,546,0001,546,0002,121,728expected "16384 ", got "378 "stderr
3Jul 4, 2026 06:58010,985,2471,039,0002,205,0002,121,728expected "16384 ", got "378 "stderr
4Jan 7, 2026 14:083,065120,562,63299,158,0002,003,0002,502,656
5Jan 7, 2026 14:083,095124,716,920100,128,0002,002,0002,535,424
6Jan 7, 2026 14:083,102126,175,563101,352,0001,003,0002,535,424
7Jan 7, 2026 14:083,131121,197,069102,317,0001,003,0002,400,256
8Jan 7, 2026 14:083,156127,531,331102,135,0002,002,0002,535,424
9Jan 7, 2026 14:083,160125,894,299103,294,0001,002,0002,396,160
10Jan 7, 2026 14:083,164125,151,309103,408,0001,003,0002,400,256
11Jan 7, 2026 14:083,220127,185,977105,271,0001,002,0002,457,600
12Jan 7, 2026 14:083,244126,689,053106,066,0001,000,0002,355,200