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 28, 2022 07:29Bernard 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 28, 2022 07:2900000Error: expected "1019008 ", got "1019007"
2Aug 28, 2022 07:2910,412417,126,578343,583,07502,277,376
3Aug 28, 2022 07:2910,465395,969,513345,352,69402,273,280
4Aug 28, 2022 07:2910,501398,966,629346,533,70402,273,280
5Aug 28, 2022 07:2910,521413,218,690347,185,13002,281,472
6Aug 28, 2022 07:2910,524407,737,449347,275,84302,273,280
7Aug 28, 2022 07:2910,554409,224,353348,265,68302,269,184