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 listMay 1, 2021 20:32Dmitry DolgopolovDmitry DolgopolovError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2021 20:3200000Wrong answer: expected: 1036535 got: 0/0;1896/66;126458/4356;2035349/70271;2324663/80330;2325692/80424;2336691/80649;2311831/79827;2318091/80093;2309457/79844;2323617/80296;2314043/79915;2330268/80526;2308650/79772;2317406/80116;2315888/80050;0/0
2May 29, 2021 10:4200000Wrong answer: expected "1037141 ", got "0/0;1885/66;125880/4356;2033951/70250;2315147/80192;2329218/80509;2313727/80126;2326206/80460;2316808/79998;2311427/79962;2313782/79939;2313151/79958;2317737/80080;2324322/80376;2327990/80465;2328769/80404;0/0 "