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 7, 2026 03:10zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:12Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:13010,983,2781,041,0002,227,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 07:13010,896,4381,044,0002,099,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 07:13011,607,2521,042,0002,089,0002,121,728expected "16384 ", got "349 "stderr
4Jan 7, 2026 03:103,028125,201,25498,914,000999,0002,408,448
5Jan 7, 2026 03:103,066123,685,44199,166,0002,003,0002,404,352
6Jan 7, 2026 03:103,076122,696,467100,491,0001,004,0002,408,448
7Jan 7, 2026 03:543,079128,745,519100,607,0001,006,0002,535,424
8Jan 7, 2026 03:123,104126,188,578100,438,0002,008,0002,535,424
9Jan 7, 2026 03:123,131128,106,028102,335,0001,003,0002,404,352
10Jan 7, 2026 03:103,154126,712,711102,097,0002,001,0002,412,544
11Jan 7, 2026 03:543,157128,644,635101,181,0003,005,0002,404,352
12Jan 7, 2026 03:103,164126,145,516103,394,0001,003,0002,535,424
13Jan 7, 2026 03:103,169131,592,264103,560,0001,005,0002,412,544
14Jan 7, 2026 03:103,176135,778,383102,822,0001,996,0002,400,256
15Jan 7, 2026 03:103,215129,135,508104,095,0002,001,0002,535,424
16Jan 7, 2026 03:543,249126,035,595105,204,0002,003,0002,408,448
17Jan 7, 2026 03:103,374134,438,298109,333,0002,006,0002,408,448
18Jan 7, 2026 03:123,381141,479,448109,547,0002,010,0002,498,560