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 11:01Bernard 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 11:0100000Error: expected "1023022 ", got "1023021"
2Aug 29, 2022 11:028,973386,637,276296,100,77202,297,856
3Aug 29, 2022 11:029,027370,331,917297,905,34402,293,760
4Aug 29, 2022 11:029,043357,109,593298,405,24002,301,952
5Aug 29, 2022 11:029,053361,020,318298,735,92102,289,664
6Aug 29, 2022 11:029,131361,561,388301,337,14602,301,952
7Aug 29, 2022 11:0210,107407,169,465333,536,91602,301,952