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 27, 2022 13:24Bernard 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 06:5400000Error: expected "1021412 ", got "1021411"
2Aug 28, 2022 06:4900000Error: expected "1019896 ", got "1019895"
3Aug 28, 2022 06:4900000Error: expected "1022581 ", got "1022580"
4Aug 28, 2022 06:4800000Error: expected "1023925 ", got "1023923"
5Aug 27, 2022 13:2400000Error: expected "1023642 ", got "1023641"
6Aug 28, 2022 06:5110,419410,542,783343,815,97402,285,568
7Aug 27, 2022 13:2410,420418,053,904343,870,62402,277,376
8Aug 27, 2022 13:2510,423403,298,947343,955,80302,277,376
9Aug 27, 2022 13:2510,429400,943,068344,147,95202,265,088
10Aug 27, 2022 13:2410,431398,886,310344,211,59202,281,472
11Aug 28, 2022 06:5110,442405,614,443344,602,00402,273,280
12Aug 28, 2022 06:5110,477411,559,012345,736,46002,289,664
13Aug 28, 2022 06:5110,480414,283,530345,829,42402,281,472
14Aug 28, 2022 06:5110,488407,066,365346,088,27802,289,664
15Aug 28, 2022 06:5110,497412,055,563346,399,18302,281,472
16Aug 28, 2022 06:5110,504414,515,596346,618,34902,273,280
17Aug 27, 2022 13:2410,517424,293,180347,046,52402,293,760
18Aug 28, 2022 06:5110,525410,535,399347,332,42502,281,472
19Aug 27, 2022 13:2510,527414,785,496347,394,06002,289,664
20Aug 28, 2022 06:5110,576403,689,324349,016,27102,289,664