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 13:51Bernard 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 13:5100000Error: expected "1023082 ", got "1023081"
2Aug 29, 2022 13:526,392283,201,416210,948,16802,297,856
3Aug 29, 2022 13:516,393279,596,231210,961,31102,293,760
4Aug 29, 2022 13:516,454272,714,137212,998,19602,297,856
5Aug 29, 2022 13:526,484277,321,241213,983,94702,289,664
6Aug 29, 2022 13:516,501274,675,133214,540,15902,293,760
7Aug 29, 2022 13:526,514280,807,712214,973,35102,293,760
8Aug 29, 2022 13:526,517292,295,907215,046,08802,289,664
9Aug 29, 2022 13:526,521283,828,503215,177,67502,293,760
10Aug 29, 2022 13:516,530286,259,399215,499,44402,285,568
11Aug 29, 2022 13:516,547286,086,810216,062,35902,297,856
12Aug 29, 2022 13:526,564273,985,490216,599,66302,281,472
13Aug 29, 2022 13:526,577272,452,486217,048,77102,281,472
14Aug 29, 2022 13:526,632284,481,725218,852,71102,297,856
15Aug 29, 2022 13:516,649291,739,869219,409,88902,256,896
16Aug 29, 2022 13:516,892283,810,516227,445,60602,293,760
17Aug 29, 2022 13:526,950287,338,446229,360,57002,293,760
18Aug 29, 2022 13:516,988291,883,236230,617,17202,281,472
19Aug 29, 2022 13:517,998335,045,419263,942,50002,297,856