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

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 10:23Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 10:25011,021,8221,519,0001,519,0002,121,728expected "16384 ", got "349 "stderr
2Jul 4, 2026 10:25011,002,5081,541,0001,540,0002,121,728expected "16384 ", got "349 "stderr
3Jul 4, 2026 10:25010,993,0851,549,0001,549,0002,121,728expected "16384 ", got "349 "stderr
4Jan 4, 2026 17:513,090127,124,827100,987,000999,0002,453,504
5Jan 4, 2026 17:513,147129,507,239101,856,0001,997,0002,273,280
6Jan 4, 2026 18:013,160131,215,778102,290,0002,005,0002,269,184
7Jan 4, 2026 17:523,187127,326,618103,172,0002,003,0002,531,328
8Jan 4, 2026 18:013,205134,243,054102,763,0002,993,0002,408,448
9Jan 4, 2026 18:013,217128,242,241105,148,0001,001,0002,420,736
10Jan 4, 2026 17:513,253131,709,585106,352,0001,003,0002,420,736
11Jan 4, 2026 17:523,255125,756,571106,401,0001,003,0002,420,736
12Jan 4, 2026 17:523,298128,454,988106,805,0002,015,0002,412,544