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 6, 2022 09:38Eugene 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:3600000Error: expected "1024516 ", got "1024515 "
2Aug 6, 2022 09:3600000Error: expected "1022289 ", got "1022288 "
3Aug 6, 2022 09:3700000Error: expected "1026533 ", got "1026532 "
4Aug 6, 2022 09:3837,1501,278,492,3581,225,963,22202,285,568
5Aug 6, 2022 09:3838,0771,316,602,8271,256,553,91602,297,856
6Aug 6, 2022 09:3838,1271,311,104,4871,258,199,03402,289,664