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 16:27Bernard 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 16:2700000Error: expected "1019672 ", got "1019670"
2Aug 29, 2022 16:2700000Error: expected "1021947 ", got "1021946"
3Aug 29, 2022 16:2700000Error: expected "1019371 ", got "1019369"
4Aug 29, 2022 16:2700000Error: expected "1023006 ", got "1023005"
5Aug 29, 2022 16:2700000Error: expected "1026051 ", got "1026049"
6Aug 29, 2022 16:2700000Error: expected "1020585 ", got "1020584"
7Aug 29, 2022 16:2700000Error: expected "1019176 ", got "1019175"
8Aug 29, 2022 16:274,278201,705,874141,169,56202,297,856
9Aug 29, 2022 16:274,281199,593,628141,262,17102,301,952
10Aug 29, 2022 16:274,281201,763,833141,279,46402,301,952
11Aug 29, 2022 16:274,296197,294,134141,769,47702,297,856
12Aug 29, 2022 16:274,312198,228,077142,283,20802,174,976
13Aug 29, 2022 16:274,312205,657,644142,308,65602,293,760