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: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 29, 2022 16:2500000Error: expected "1024088 ", got "1024087"
2Aug 29, 2022 16:2500000Error: expected "1022826 ", got "1022824"
3Aug 29, 2022 16:2500000Error: expected "1026030 ", got "1026029"
4Aug 29, 2022 16:2500000Error: expected "1025368 ", got "1025367"
5Aug 29, 2022 16:2500000Error: expected "1026175 ", got "1026173"
6Aug 29, 2022 16:2400000Error: expected "1022261 ", got "1022259"
7Aug 29, 2022 16:254,591224,599,276151,503,79602,297,856
8Aug 29, 2022 16:244,601223,203,982151,848,79202,256,896
9Aug 29, 2022 16:244,611218,662,998152,173,84502,297,856
10Aug 29, 2022 16:244,617217,202,310152,357,25602,306,048
11Aug 29, 2022 16:244,619218,883,086152,413,38202,301,952
12Aug 29, 2022 16:244,623220,226,609152,565,26802,297,856
13Aug 29, 2022 16:254,627217,872,055152,684,83802,297,856
14Aug 29, 2022 16:244,627213,782,169152,683,16002,297,856
15Aug 29, 2022 16:254,639206,689,158153,095,89202,285,568
16Aug 29, 2022 16:244,642217,819,095153,183,57902,297,856
17Aug 29, 2022 16:244,654214,969,594153,580,39402,297,856
18Aug 29, 2022 16:244,944232,281,013163,145,07702,293,760