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:39Bernard 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:3900000Error: expected "1020855 ", got "1020854"
2Aug 29, 2022 14:395,522247,733,950182,213,99102,285,568
3Aug 29, 2022 14:445,596246,264,461184,652,09302,252,800
4Aug 29, 2022 14:395,608247,731,544185,076,71802,293,760
5Aug 29, 2022 14:445,665266,970,166186,932,83502,297,856
6Aug 29, 2022 14:395,759241,521,147190,047,45202,297,856
7Aug 29, 2022 14:395,795280,128,043191,227,32302,306,048
8Aug 29, 2022 14:395,800256,876,609191,388,37002,297,856
9Aug 29, 2022 14:395,814250,287,760191,871,41702,289,664
10Aug 29, 2022 14:395,821244,943,652192,091,74702,297,856
11Aug 29, 2022 14:395,831260,842,993192,417,21302,293,760
12Aug 29, 2022 14:395,848252,270,402192,984,35402,293,760
13Aug 29, 2022 14:395,866258,045,988193,582,15902,289,664
14Aug 29, 2022 14:395,867266,375,110193,603,22802,301,952
15Aug 29, 2022 14:395,874258,174,978193,837,19802,174,976
16Aug 29, 2022 14:395,886268,620,076194,233,63102,289,664
17Aug 29, 2022 14:395,886247,671,716194,231,39202,256,896
18Aug 29, 2022 14:445,905261,462,029194,851,42002,306,048
19Aug 29, 2022 14:396,376284,790,661210,422,85202,293,760