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 11:16Bernard 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 11:2100000Error: expected "1022682 ", got "1022681"
2Aug 29, 2022 11:2000000Error: expected "1022805 ", got "1022804"
3Aug 29, 2022 11:2000000Error: expected "1020213 ", got "1020212"
4Aug 29, 2022 11:1800000Error: expected "1023209 ", got "1023208"
5Aug 29, 2022 11:1800000Error: expected "1021734 ", got "1021733"
6Aug 29, 2022 11:1600000Error: expected "1025168 ", got "1025167"
7Aug 29, 2022 11:1600000Error: expected "1025969 ", got "1025968"
8Aug 29, 2022 11:168,610352,083,765284,124,32902,285,568
9Aug 29, 2022 11:218,647355,633,013285,365,33302,297,856
10Aug 29, 2022 11:168,662362,720,784285,856,77602,301,952
11Aug 29, 2022 11:168,668339,734,004286,028,76402,297,856
12Aug 29, 2022 11:168,670343,848,957286,121,16402,289,664
13Aug 29, 2022 11:168,702350,444,205287,153,01002,297,856
14Aug 29, 2022 11:168,708376,040,386287,355,47202,293,760
15Aug 29, 2022 11:218,724355,187,051287,904,09202,293,760
16Aug 29, 2022 11:218,726352,479,475287,962,19202,301,952
17Aug 29, 2022 11:218,752354,968,134288,803,33602,289,664
18Aug 29, 2022 11:219,440375,967,148311,522,43602,306,048
19Aug 29, 2022 11:219,569377,079,803315,777,76702,301,952