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 14, 2024 19:32джулисджулисError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 14, 2024 19:2800000Error: expected "1023756 ", got "1023755 "stderr
2Jun 14, 2024 19:3100000Error: expected "1021256 ", got "1021255 "stderr
3Jun 14, 2024 19:32324,91810,788,589,78210,722,307,20202,187,264
4Jun 14, 2024 19:32325,38810,807,837,77410,737,811,31102,310,144
5Jun 14, 2024 19:32343,36411,398,726,76511,330,998,50102,191,360