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 31, 2022 01:16wireless anonwireless anonError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2022 01:3200000Error: expected "1021222 ", got "1021221"
2Aug 31, 2022 01:1672,3032,447,872,3902,385,983,45502,183,168
3Aug 31, 2022 01:1674,0672,516,536,8542,444,200,02902,199,552
4Aug 31, 2022 01:1674,3092,522,351,0192,452,182,98402,195,456