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 04:26zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 08:48Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 08:49010,937,8311,041,0002,161,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 08:49010,937,0741,535,0001,535,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 08:49010,936,9531,040,0002,168,0002,121,728expected "16384 ", got "349 "stderr
4Jan 4, 2026 17:223,079130,879,884100,613,0001,006,0002,416,640
5Jan 4, 2026 17:223,095127,558,098100,133,0002,002,0002,273,280
6Jan 4, 2026 17:223,121130,488,61799,992,0002,999,0002,416,640
7Jan 4, 2026 17:223,127123,117,160102,182,0001,001,0002,535,424
8Jan 4, 2026 17:223,162127,557,466102,337,0002,006,0002,535,424
9Jan 4, 2026 04:263,172132,508,022101,696,0002,991,0002,412,544
10Jan 4, 2026 17:223,174127,880,557104,746,00002,535,424
11Jan 4, 2026 17:223,175133,143,647103,767,000997,0002,535,424
12Jan 4, 2026 17:223,196127,646,597103,455,0002,008,0002,416,640
13Jan 4, 2026 04:263,207133,994,574103,820,0001,996,0002,412,544
14Jan 4, 2026 17:223,207133,496,836105,818,00002,408,448
15Jan 4, 2026 04:263,217125,139,585104,174,0002,003,0002,535,424