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 11, 2026 01:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 04:14Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 04:14011,269,6181,042,0002,117,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 04:14011,237,2251,040,0002,087,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 04:14011,224,4481,040,0002,127,0002,121,728expected "16384 ", got "349 "stderr
4Jan 11, 2026 01:202,980119,992,46395,316,0003,009,0002,412,544
5Jan 11, 2026 01:152,998118,906,43396,950,0001,998,0002,535,424
6Jan 11, 2026 01:203,008123,631,32597,245,0002,005,0002,420,736
7Jan 11, 2026 01:203,009122,235,84298,300,0001,003,0002,412,544
8Jan 11, 2026 01:203,046125,429,39699,514,0001,005,0002,412,544
9Jan 11, 2026 01:193,057130,102,84998,896,0001,997,0002,273,280
10Jan 11, 2026 01:203,063126,827,219100,077,0001,000,0002,535,424
11Jan 11, 2026 01:193,085128,693,998100,813,000998,0002,535,424
12Jan 11, 2026 01:153,085132,188,722100,823,000998,0002,416,640
13Jan 11, 2026 01:203,097129,979,778100,193,0002,003,0002,424,832
14Jan 11, 2026 01:153,099127,202,986100,267,0002,005,0002,535,424
15Jan 11, 2026 01:203,110128,879,402101,624,0001,006,0002,273,280
16Jan 11, 2026 01:203,114126,019,611101,777,000997,0002,535,424
17Jan 11, 2026 01:193,115125,940,416101,801,000998,0002,535,424
18Jan 11, 2026 01:203,148127,796,679101,897,0001,997,0002,400,256