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 16, 2024 00:44Joad NacerJoad NacerError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 16, 2024 00:4400000Error: expected "1019301 ", got "1019292 "
2Jun 16, 2024 00:444,738222,094,366156,346,12902,215,936
3Jun 16, 2024 00:444,765217,585,214157,260,37902,224,128
4Jun 16, 2024 00:444,775212,364,323157,581,03002,220,032
5Jun 16, 2024 00:444,787213,393,733157,969,27702,220,032
6Jun 16, 2024 00:444,790216,319,618158,085,99402,351,104
7Jun 16, 2024 00:444,839231,297,525159,671,77802,224,128