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 26, 2022 13: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 26, 2022 13:0600000Error: expected "1026779 ", got "1026778"
2Aug 26, 2022 13:1200000Error: expected "1018760 ", got "1018759"
3Aug 26, 2022 13:0610,267408,369,125338,813,81802,297,856
4Aug 26, 2022 13:1210,289409,465,554339,547,55502,281,472
5Aug 26, 2022 13:0610,298403,057,673339,829,75302,277,376
6Aug 26, 2022 13:0610,302410,575,596339,979,80102,277,376
7Aug 26, 2022 13:0610,326396,865,736340,753,38102,285,568
8Aug 26, 2022 13:0610,343399,515,187341,328,35902,277,376
9Aug 26, 2022 13:0610,352396,772,223341,616,59902,273,280
10Aug 26, 2022 13:1210,370409,035,223342,206,90502,285,568
11Aug 26, 2022 13:1210,473396,891,356345,601,02202,269,184