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 23, 2022 17:02eldon-chungeldon-chungError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 23, 2022 17:0200000Error: expected "1022982 ", got "1022981 "
2Aug 23, 2022 17:0200000Error: expected "1025485 ", got "1025483 "
3Aug 23, 2022 17:0300000Error: expected "1019588 ", got "1019587 "
4Aug 23, 2022 17:02294,4559,794,297,4119,717,004,16702,195,456
5Aug 23, 2022 17:02295,8609,837,324,1999,763,393,14602,191,360
6Aug 23, 2022 17:02296,2759,878,481,0519,777,075,73102,187,264
7Aug 23, 2022 17:02296,8949,864,567,1739,797,502,14102,183,168
8Aug 23, 2022 17:02297,5599,894,018,4039,819,440,84602,195,456
9Aug 23, 2022 17:02297,8609,896,480,7159,829,364,49602,187,264