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 5, 2022 13:37Eugene ZhydzetskiEugene ZhydzetskiError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 6, 2022 09:3000000Error: expected "1025840 ", got "1025871 "
2Aug 6, 2022 09:3136,3451,267,730,4411,199,376,80502,293,760
3Aug 5, 2022 13:3736,3761,260,868,4731,200,407,41402,285,568
4Aug 6, 2022 09:3136,6361,304,652,1171,208,983,17602,297,856
5Aug 5, 2022 13:3736,6891,281,677,1061,210,750,18402,174,976
6Aug 5, 2022 13:3736,8091,277,581,6551,214,711,83202,289,664
7Aug 6, 2022 09:3139,7251,376,146,2571,310,915,02402,297,856