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 07:10Bernard 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 27, 2022 07:1000000Error: expected "1026005 ", got "1026004"
2Aug 27, 2022 07:2200000Error: expected "1019830 ", got "1019829"
3Aug 27, 2022 07:1010,390407,454,452342,866,66102,285,568
4Aug 27, 2022 07:2210,425399,737,008344,024,80402,273,280
5Aug 27, 2022 07:1010,444417,599,627344,642,48502,252,800
6Aug 27, 2022 07:2210,489408,641,858346,150,97402,281,472
7Aug 27, 2022 07:2210,502408,973,640346,567,82002,273,280
8Aug 27, 2022 07:1010,506413,711,179346,698,96002,244,608
9Aug 27, 2022 07:1010,508414,739,891346,748,32402,281,472
10Aug 27, 2022 07:1010,515424,840,907346,980,08402,285,568
11Aug 27, 2022 07:1010,516421,391,520347,020,47102,285,568