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

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 20:19Victor Mercklé13.27CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 20:19011,421,7261,091,0002,255,0002,121,728expected "16384 ", got "14847 "stderr
2Jul 4, 2026 20:19011,084,7711,565,0001,567,0002,121,728expected "16384 ", got "14847 "stderr
3Jul 4, 2026 20:19011,112,3651,048,0002,103,0002,121,728expected "16384 ", got "14847 "stderr
4Jul 4, 2026 20:133,242115,066,246104,640,0002,363,0002,121,728stderr
5Jul 4, 2026 20:133,249116,489,547105,011,0002,237,0002,121,728stderr
6Jul 4, 2026 20:133,269115,939,628105,595,0002,292,0002,121,728stderr
7Jul 4, 2026 20:133,275116,179,384105,698,0002,377,0002,121,728stderr
8Jul 4, 2026 20:133,277116,219,676105,768,0002,404,0002,121,728stderr
9Jul 4, 2026 20:133,281116,661,275106,007,0002,277,0002,121,728stderr
10Jul 4, 2026 20:133,294116,745,727106,400,0002,325,0002,121,728stderr
11Jul 4, 2026 20:133,311117,288,558106,981,0002,285,0002,121,728stderr
12Jul 4, 2026 20:133,365119,469,715108,716,0002,347,0002,121,728stderr