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 4, 2026 17:12zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 09:11Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 09:11010,931,4471,029,0002,085,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 09:11011,066,2091,034,0002,089,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 09:11011,026,3701,536,0001,537,0002,121,728expected "16384 ", got "349 "stderr
4Jan 4, 2026 21:433,126126,236,064101,150,0002,002,0002,273,280
5Jan 4, 2026 17:133,127126,702,165101,183,0002,003,0002,535,424
6Jan 4, 2026 17:123,137125,535,810102,505,0001,004,0002,535,424
7Jan 4, 2026 17:123,146127,504,482100,811,0002,994,0002,535,424
8Jan 4, 2026 17:123,149124,101,087102,933,000999,0002,273,280
9Jan 4, 2026 17:133,177130,562,230103,827,0001,008,0002,506,752
10Jan 4, 2026 17:133,182131,026,257104,020,0001,000,0002,420,736
11Jan 4, 2026 17:123,183129,874,508102,028,0003,000,0002,535,424
12Jan 4, 2026 21:433,211127,661,527103,961,0001,999,0002,535,424
13Jan 4, 2026 17:123,235131,353,053105,774,000997,0002,412,544
14Jan 4, 2026 21:433,256135,350,668106,441,0001,004,0002,273,280
15Jan 4, 2026 17:123,280129,502,804106,230,0002,004,0002,408,448