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:09Bernard 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:0900000Error: expected "1026516 ", got "1026515"
2Aug 29, 2022 13:0900000Error: expected "1018477 ", got "1018476"
3Aug 29, 2022 13:0910,516425,394,654347,016,38302,269,184
4Aug 29, 2022 13:0910,533417,891,890347,590,14002,273,280
5Aug 29, 2022 13:0910,768413,042,599355,335,57502,277,376
6Aug 29, 2022 13:0910,809420,911,001356,712,63302,269,184
7Aug 29, 2022 13:0910,811421,825,128356,772,71902,265,088
8Aug 29, 2022 13:0910,873430,394,661358,797,71802,269,184