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 10, 2021 15:50Yuriy 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 10, 2021 15:5100000Error: expected "1037749 ", got "1037750 "
2Jun 10, 2021 15:505,664169,922,261331,755,80802,539,520
3Jun 10, 2021 15:565,873176,192,284334,593,28502,441,216
4Jun 10, 2021 15:515,898176,941,617333,005,60302,441,216
5Jun 10, 2021 15:515,908177,225,790333,931,56402,297,856
6Jun 10, 2021 15:505,954178,623,056335,109,76102,428,928
7Jun 10, 2021 15:565,993179,799,170333,554,79902,412,544
8Jun 10, 2021 15:516,041181,219,797332,980,79702,330,624
9Jun 10, 2021 15:536,122183,652,079336,123,50202,543,616
10Jun 10, 2021 15:566,128183,842,640334,484,61302,572,288
11Jun 10, 2021 15:536,183185,489,150335,559,68702,568,192
12Jun 10, 2021 15:506,318189,525,655334,413,39302,428,928
13Jun 10, 2021 15:536,338190,140,430333,724,67502,547,712