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 listSep 2, 2021 14:11Ilya AniskovetsIlya AniskovetsError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2021 14:1000000Error: expected "1023294 ", got "1023293"stderr
2Sep 2, 2021 14:1141,6201,429,681,9021,373,454,19902,199,552
3Sep 2, 2021 14:1141,8101,453,648,3891,379,727,27102,207,744
4Sep 2, 2021 14:1142,0261,456,671,5081,386,852,24002,297,856