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:15Bernard 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:1500000Error: expected "1022858 ", got "1022857"
2Aug 29, 2022 13:1610,451402,686,858344,871,71102,269,184
3Aug 29, 2022 13:1610,494419,075,935346,298,40802,277,376
4Aug 29, 2022 13:1610,559423,077,829348,458,75602,277,376
5Aug 29, 2022 13:1610,724405,898,418353,907,03602,277,376
6Aug 29, 2022 13:1610,754422,962,452354,868,70702,265,088
7Aug 29, 2022 13:1610,822430,526,167357,138,60402,265,088