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:06Bernard 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:0700000Error: expected "1026004 ", got "1026003"
2Aug 29, 2022 14:066,239271,319,547205,889,42102,297,856
3Aug 29, 2022 14:066,561290,372,373216,523,09502,289,664
4Aug 29, 2022 14:066,562281,560,893216,558,41902,293,760
5Aug 29, 2022 14:066,577285,755,193217,042,02202,293,760
6Aug 29, 2022 14:066,619285,059,589218,429,82402,289,664
7Aug 29, 2022 14:086,626282,270,664218,643,38502,289,664
8Aug 29, 2022 14:086,626284,688,756218,654,29902,285,568
9Aug 29, 2022 14:066,642297,069,322219,185,25102,285,568
10Aug 29, 2022 14:066,647287,454,648219,356,17302,289,664
11Aug 29, 2022 14:066,654285,016,337219,579,60202,289,664
12Aug 29, 2022 14:066,667273,772,540220,017,06302,297,856
13Aug 29, 2022 14:066,678274,800,378220,385,71102,297,856
14Aug 29, 2022 14:066,689285,348,730220,723,40902,301,952
15Aug 29, 2022 14:066,690289,389,338220,770,08002,289,664
16Aug 29, 2022 14:086,711284,943,505221,457,06202,297,856