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 listJun 8, 2021 19:35Yuriy LyfenkoYuriy LyfenkoError
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2021 19:3500000Error: expected "1038263 ", got "1038262 "
2Jun 8, 2021 20:1100000Error: expected "1035158 ", got "1035157 "
3Jun 8, 2021 20:1717,670658,829,796583,102,63302,244,608
4Jun 8, 2021 19:3517,843646,741,261588,825,14802,252,800
5Jun 8, 2021 20:1717,963655,913,256592,794,74502,252,800
6Jun 8, 2021 19:3518,233658,048,705601,676,21702,244,608
7Jun 8, 2021 19:3518,338656,550,100605,167,10902,248,704
8Jun 8, 2021 20:1718,348666,320,095605,468,20402,248,704