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:10Bernard 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:2300000Error: expected "1024646 ", got "1024645"
2Aug 29, 2022 11:238,631341,934,889284,832,29102,297,856
3Aug 29, 2022 11:108,639353,278,705285,093,15902,293,760
4Aug 29, 2022 11:108,643354,097,860285,215,98802,293,760
5Aug 29, 2022 11:238,646343,701,409285,305,07402,293,760
6Aug 29, 2022 11:108,652348,312,525285,511,52702,297,856
7Aug 29, 2022 11:108,660355,018,377285,794,78102,281,472
8Aug 29, 2022 11:108,662354,280,665285,859,30202,297,856
9Aug 29, 2022 11:108,681343,951,087286,487,09002,293,760
10Aug 29, 2022 11:238,682349,488,172286,515,89302,289,664
11Aug 29, 2022 11:108,685360,235,109286,608,15002,293,760
12Aug 29, 2022 11:238,687352,089,733286,674,62502,293,760
13Aug 29, 2022 11:238,707347,994,271287,333,72102,289,664
14Aug 29, 2022 11:108,717358,423,896287,652,57302,297,856
15Aug 29, 2022 11:239,014362,051,654297,471,83202,297,856
16Aug 29, 2022 11:109,441376,804,353311,563,01102,285,568