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 7, 2021 20:57Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2021 20:5700000Error: expected "1037211 ", got "1037210 "
2Jun 7, 2021 20:5800000Error: expected "1034730 ", got "1034729 "
3Jun 8, 2021 13:4100000Error: expected "1038869 ", got "1038868 "
4Jun 8, 2021 13:4200000Error: expected "1041535 ", got "1041534 "
5Jun 8, 2021 13:4216,056588,011,135529,862,00102,273,280
6Jun 8, 2021 13:4216,078589,069,108530,564,30802,260,992
7Jun 8, 2021 13:4216,106592,447,605531,483,80302,281,472
8Jun 8, 2021 13:4216,118589,377,667531,888,30302,269,184
9Jun 8, 2021 13:4216,139597,294,192532,571,22802,273,280
10Jun 8, 2021 13:4216,193584,177,043534,361,02302,265,088
11Jun 7, 2021 20:5816,484600,495,384543,968,37802,260,992
12Jun 7, 2021 20:5916,493604,996,162544,269,52002,273,280
13Jun 7, 2021 20:5916,509605,434,753544,784,07902,273,280
14Jun 7, 2021 20:5816,517600,519,992545,066,44402,277,376
15Jun 7, 2021 20:5816,621612,400,499548,501,95902,265,088
16Jun 7, 2021 20:5916,624624,235,971548,607,73702,265,088