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 13:16Bernard 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 13:1600000Error: expected "1021503 ", got "1021502"
2Aug 29, 2022 13:1700000Error: expected "1024835 ", got "1024834"
3Aug 29, 2022 13:1810,438410,990,814344,453,25002,277,376
4Aug 29, 2022 13:1810,446402,815,773344,726,06502,285,568
5Aug 29, 2022 13:1810,492409,363,950346,235,30402,273,280
6Aug 29, 2022 13:1810,520404,563,309347,174,14502,281,472
7Aug 29, 2022 13:1810,523421,431,964347,246,42202,285,568
8Aug 29, 2022 13:1810,840419,646,487357,735,52902,273,280