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 7, 2021 16:16Yuriy 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 16:3700000Error: expected "1039428 ", got "1039427 "
2Jun 7, 2021 16:3900000Error: expected "1038769 ", got "1038768 "
3Jun 7, 2021 16:1711,093332,777,682800,592,46602,412,544
4Jun 7, 2021 16:1711,149334,463,663800,540,91302,543,616
5Jun 7, 2021 16:1711,152334,545,147801,332,62702,568,192
6Jun 7, 2021 16:1711,228336,849,145803,910,36502,412,544
7Jun 7, 2021 16:1611,629348,861,076851,020,90002,433,024
8Jun 7, 2021 16:1611,630348,886,489850,311,74002,420,736
9Jun 7, 2021 16:1611,635349,054,507845,402,03502,437,120
10Jun 7, 2021 16:1711,727351,819,694801,606,71002,547,712
11Jun 7, 2021 16:1611,755352,657,874851,209,89102,408,448
12Jun 7, 2021 16:1711,756352,672,746798,298,67602,437,120
13Jun 7, 2021 16:1611,802354,045,066852,962,16202,437,120
14Jun 7, 2021 16:1612,134364,024,325847,003,99202,547,712