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 26, 2022 12:27Bernard 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 12:2800000Error: expected "1022186 ", got "1022185"
2Aug 26, 2022 12:2900000Error: expected "1018706 ", got "1018705"
3Aug 26, 2022 12:2810,482403,315,893345,907,99102,281,472
4Aug 26, 2022 12:2710,504400,802,996346,615,84202,289,664
5Aug 26, 2022 12:2910,512424,922,546346,904,62302,277,376
6Aug 26, 2022 12:2810,522408,799,169347,230,80102,281,472
7Aug 26, 2022 12:2910,537408,630,349347,724,97402,285,568
8Aug 26, 2022 12:2810,576431,066,706349,005,94802,289,664
9Aug 26, 2022 12:2910,588414,176,315349,388,85402,277,376
10Aug 26, 2022 12:2711,075418,833,501365,467,10202,273,280
11Aug 26, 2022 12:2711,273445,782,454371,994,06102,281,472