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:41Bernard 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:4100000Error: expected "1018683 ", got "1018682"
2Aug 29, 2022 14:4100000Error: expected "1024686 ", got "1024685"
3Aug 29, 2022 14:4100000Error: expected "1019095 ", got "1019094"
4Aug 29, 2022 14:4100000Error: expected "1022245 ", got "1022244"
5Aug 29, 2022 14:4100000Error: expected "1022143 ", got "1022142"
6Aug 29, 2022 14:4100000Error: expected "1023507 ", got "1023506"
7Aug 29, 2022 14:435,738259,607,919189,353,93802,301,952
8Aug 29, 2022 14:435,760271,808,088190,092,64802,293,760
9Aug 29, 2022 14:435,794263,404,955191,206,49902,297,856
10Aug 29, 2022 14:435,800272,193,629191,400,50202,297,856
11Aug 29, 2022 14:435,805262,332,940191,556,20802,293,760
12Aug 29, 2022 14:435,816261,206,850191,923,06602,301,952
13Aug 29, 2022 14:435,864256,120,587193,506,10302,297,856
14Aug 29, 2022 14:435,865266,230,374193,549,25902,252,800
15Aug 29, 2022 14:435,890254,830,429194,364,38002,301,952