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 10: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 5, 2022 10:4200000Error: expected "1022110 ", got "1022109 "stderr
2Aug 5, 2022 10:5000000Error: expected "1025058 ", got "1025057 "stderr
3Aug 5, 2022 10:37107,1753,610,260,9243,536,784,65802,228,224
4Aug 5, 2022 10:31107,2094,052,757,9123,537,892,12802,224,128
5Aug 5, 2022 10:31107,2913,608,220,8483,540,610,04402,297,856
6Aug 5, 2022 10:37107,6683,612,690,5873,553,029,86102,256,896
7Aug 5, 2022 10:37107,8183,616,401,7773,557,983,97902,289,664
8Aug 5, 2022 10:31107,9463,630,918,1253,562,219,37302,236,416