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 28, 2022 08:08Bernard 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 28, 2022 08:1200000Error: expected "1019956 ", got "1019955"
2Aug 28, 2022 08:1200000Error: expected "1023616 ", got "1023615"
3Aug 28, 2022 08:1300000Error: expected "1019799 ", got "1019798"
4Aug 28, 2022 08:0810,279407,272,975339,217,78602,248,704
5Aug 28, 2022 08:0810,294418,603,228339,713,38802,256,896
6Aug 28, 2022 08:0810,304404,088,249340,030,54302,256,896
7Aug 28, 2022 08:1210,316404,122,781340,444,14902,252,800
8Aug 28, 2022 08:0810,336400,527,539341,100,66402,256,896
9Aug 28, 2022 08:0810,345402,476,921341,369,28102,256,896
10Aug 28, 2022 08:0810,376403,718,235342,404,10502,260,992
11Aug 28, 2022 08:0810,376394,792,041342,410,04002,260,992
12Aug 28, 2022 08:0810,413410,525,766343,638,55402,252,800
13Aug 28, 2022 08:1210,421411,661,624343,896,51102,248,704
14Aug 28, 2022 08:1210,478401,936,616345,767,45502,252,800
15Aug 28, 2022 08:0810,815425,926,793356,884,68602,252,800