Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 8, 2021 21:35Yuriy 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 8, 2021 21:3500000Error: expected "1034982 ", got "1034981 "
2Jun 8, 2021 21:3500000Error: expected "1037077 ", got "1037076 "
3Jun 8, 2021 21:3500000Error: expected "1041305 ", got "1041304 "
4Jun 8, 2021 21:3500000Error: expected "1038237 ", got "1038236 "
5Jun 8, 2021 21:3500000Error: expected "1036921 ", got "1036920 "
6Jun 8, 2021 21:3600000Error: expected "1038919 ", got "1038918 "
7Jun 8, 2021 21:3600000Error: expected "1034972 ", got "1034970 "
8Jun 8, 2021 21:3700000Error: expected "1039745 ", got "1039744 "
9Jun 8, 2021 21:3800000Error: expected "1041563 ", got "1041559 "
10Jun 8, 2021 21:3800000Error: expected "1042380 ", got "1042378 "
11Jun 8, 2021 21:3800000Error: expected "1038527 ", got "1038526 "
12Jun 8, 2021 21:3900000Error: expected "1038667 ", got "1038665 "
13Jun 8, 2021 21:3900000Error: expected "1036595 ", got "1036594 "
14Jun 8, 2021 21:396,716201,481,915418,855,30902,437,120
15Jun 8, 2021 21:397,322219,667,810419,589,92202,351,104
16Jun 8, 2021 21:397,488224,645,964420,716,35402,457,600