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 25, 2022 16:42Bernard TeoBernard TeoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 26, 2022 11:5800000Error: expected "1025885 ", got "1025884"
2Aug 26, 2022 11:5500000Error: expected "1024051 ", got "1024049"
3Aug 26, 2022 11:4800000Error: expected "1026027 ", got "1026026"
4Aug 26, 2022 11:5810,564413,884,699348,615,49702,285,568
5Aug 25, 2022 16:4210,597416,558,393349,708,50702,289,664
6Aug 25, 2022 16:4210,621405,222,334350,502,61602,281,472
7Aug 25, 2022 16:4210,635422,519,995350,963,63902,285,568
8Aug 25, 2022 16:4210,637427,873,421351,007,41702,285,568
9Aug 26, 2022 11:5810,638412,919,035351,044,54302,289,664
10Aug 25, 2022 16:4210,652425,975,255351,504,65102,277,376
11Aug 25, 2022 16:4210,684411,548,817352,585,87702,285,568
12Aug 25, 2022 16:4210,687421,848,275352,685,99902,281,472
13Aug 25, 2022 16:4210,690417,666,215352,778,40002,273,280
14Aug 26, 2022 11:5810,692442,412,320352,842,10402,289,664
15Aug 25, 2022 16:4210,704421,927,715353,247,26402,285,568
16Aug 26, 2022 11:5810,726413,329,113353,960,43302,277,376
17Aug 26, 2022 11:5810,739412,556,792354,372,21802,281,472
18Aug 26, 2022 11:5810,772431,057,511355,483,39402,285,568