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 29, 2022 14:35Bernard 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 29, 2022 14:3500000Error: expected "1020179 ", got "1020175"
2Aug 29, 2022 14:3500000Error: expected "1025478 ", got "1025477"
3Aug 29, 2022 14:367,045301,593,753232,478,54202,301,952
4Aug 29, 2022 14:357,225303,165,681238,439,10502,297,856
5Aug 29, 2022 14:357,234309,029,721238,708,48602,297,856
6Aug 29, 2022 14:357,786314,182,119256,926,73202,285,568
7Aug 29, 2022 14:367,835312,021,138258,570,15702,301,952
8Aug 29, 2022 14:357,849319,581,484259,025,97402,301,952
9Aug 29, 2022 14:357,854339,979,686259,179,95502,297,856
10Aug 29, 2022 14:367,877328,658,355259,945,15702,289,664
11Aug 29, 2022 14:357,880319,488,372260,051,98702,174,976
12Aug 29, 2022 14:367,891325,078,599260,388,54202,293,760
13Aug 29, 2022 14:367,927313,741,887261,597,21102,297,856
14Aug 29, 2022 14:367,997318,619,921263,902,06702,293,760