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 28, 2022 07: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 28, 2022 08:0700000Error: expected "1025288 ", got "1025287"
2Aug 28, 2022 08:0710,257399,414,424338,477,14502,248,704
3Aug 28, 2022 07:4210,288405,474,402339,518,09602,252,800
4Aug 28, 2022 07:4210,301405,590,298339,939,92902,256,896
5Aug 28, 2022 08:0710,339402,956,018341,186,27402,256,896
6Aug 28, 2022 08:0710,357397,430,547341,774,86202,256,896
7Aug 28, 2022 07:4210,364408,105,993342,014,24702,252,800
8Aug 28, 2022 07:4210,397411,331,808343,106,67102,248,704
9Aug 28, 2022 08:0710,445399,280,681344,701,00202,260,992
10Aug 28, 2022 07:4210,457419,258,728345,097,48002,248,704
11Aug 28, 2022 08:0710,493400,982,529346,282,90702,244,608
12Aug 28, 2022 07:4210,624416,749,883350,579,78102,244,608
13Aug 28, 2022 08:0711,345436,025,110374,394,28002,256,896