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 listJan 2, 2026 12:08zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:11Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:12011,043,9271,545,0001,545,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 20:12010,999,1461,529,0001,529,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 20:12017,579,0061,049,0002,252,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 12:053,312137,340,785107,292,0002,005,0002,535,424
5Jan 2, 2026 12:053,321141,025,904108,598,0001,005,0002,412,544
6Jan 2, 2026 12:083,331134,180,944106,927,0002,997,0002,416,640
7Jan 2, 2026 12:053,335137,372,996108,070,0002,001,0002,535,424
8Jan 2, 2026 12:053,369132,405,133110,180,0001,001,0002,273,280
9Jan 2, 2026 12:053,395132,044,132110,039,0002,000,0002,535,424
10Jan 2, 2026 12:053,425135,295,894111,040,0002,000,0002,408,448
11Jan 2, 2026 12:053,429142,563,984112,166,0001,001,0002,310,144
12Jan 2, 2026 12:053,452141,261,413111,931,0001,998,0002,293,760
13Jan 2, 2026 12:083,466136,088,894112,357,0002,006,0002,412,544
14Jan 2, 2026 12:053,668143,492,414119,046,0002,000,0002,416,640
15Jan 2, 2026 12:083,773151,248,327122,502,0002,008,0002,494,464