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 17:08zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 17:59Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 18:00010,893,4381,044,0002,191,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 18:00010,926,1121,043,0002,170,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 18:00011,290,9031,044,0002,150,0002,121,728expected "16384 ", got "349 "stderr
4Jan 2, 2026 16:523,330132,980,865108,898,000999,0002,412,544
5Jan 2, 2026 16:523,335134,483,966107,058,0003,001,0002,420,736
6Jan 2, 2026 17:083,339134,306,243108,178,0002,003,0002,412,544
7Jan 2, 2026 16:573,342129,620,952108,266,0002,004,0002,273,280
8Jan 2, 2026 16:523,344136,509,418108,335,0002,006,0002,416,640
9Jan 2, 2026 16:523,356134,349,403107,767,0002,993,0002,506,752
10Jan 2, 2026 16:523,357136,343,213108,781,0001,995,0002,416,640
11Jan 2, 2026 16:523,360134,971,874108,880,0001,997,0002,535,424
12Jan 2, 2026 16:523,366134,356,438109,082,0002,001,0002,314,240
13Jan 2, 2026 16:573,440140,769,336111,506,0002,009,0002,416,640
14Jan 2, 2026 17:083,441143,270,750111,541,0002,009,0002,379,776
15Jan 2, 2026 16:573,472139,845,789113,568,0001,005,0002,412,544
16Jan 2, 2026 17:083,492138,474,042113,226,0002,004,0002,273,280
17Jan 2, 2026 16:523,513139,913,598113,926,0001,998,0002,273,280
18Jan 2, 2026 16:523,514134,045,719114,971,000999,0002,269,184