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

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 07:42Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 07:42010,977,1711,521,0001,521,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 07:42011,261,5661,045,0002,102,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 07:42011,459,5261,041,0002,337,0002,121,728expected "16384 ", got "349 "stderr
4Jan 7, 2026 03:063,146128,514,386101,832,0001,996,0002,404,352
5Jan 7, 2026 03:093,148130,546,060101,876,0001,997,0002,408,448
6Jan 7, 2026 03:093,161128,914,796102,322,0002,006,0002,404,352
7Jan 7, 2026 03:063,162126,170,379103,349,0001,003,0002,400,256
8Jan 7, 2026 03:093,188129,568,973102,184,0003,005,0002,273,280
9Jan 7, 2026 03:063,356135,909,707109,765,000997,0002,535,424