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:09Bernard 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:0900000Error: expected "1023712 ", got "1023711"
2Aug 26, 2022 13:0910,483420,292,623345,924,32102,285,568
3Aug 26, 2022 13:0910,502404,719,735346,565,06202,277,376
4Aug 26, 2022 13:0910,514420,136,090346,978,05502,285,568
5Aug 26, 2022 13:0910,528424,878,106347,409,54702,289,664
6Aug 26, 2022 13:0910,603407,706,825349,883,24802,277,376
7Aug 26, 2022 13:0910,641420,673,983351,147,75602,281,472