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 31, 2022 16:05Bernard 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 31, 2022 16:0500000Error: expected "1023072 ", got "1023071"
2Aug 31, 2022 16:053,390170,641,144111,874,93602,289,664
3Aug 31, 2022 16:053,395177,400,182112,036,23802,293,760
4Aug 31, 2022 16:053,402179,223,454112,266,35702,293,760
5Aug 31, 2022 16:053,417135,710,835107,776,0004,989,0002,387,968
6Aug 31, 2022 16:053,430136,733,843107,194,0006,010,0002,383,872
7Aug 31, 2022 16:053,432139,950,920109,252,0004,009,0002,355,200
8Aug 31, 2022 16:053,437138,435,311108,418,0005,019,0002,338,816
9Aug 31, 2022 16:053,439166,151,573113,489,03402,293,760
10Aug 31, 2022 16:053,440141,030,761107,485,0006,027,0002,347,008
11Aug 31, 2022 16:053,444178,246,162113,644,86502,297,856
12Aug 31, 2022 16:053,444176,353,081113,662,07602,301,952
13Aug 31, 2022 16:053,447141,129,510110,751,0002,993,0002,383,872
14Aug 31, 2022 16:053,450135,188,623109,842,0003,994,0002,502,656
15Aug 31, 2022 16:053,463143,906,753111,277,0003,007,0002,396,160
16Aug 31, 2022 16:053,467136,972,924109,396,0005,018,0002,392,064