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 1, 2026 16:07zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 5, 2026 06:51Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 06:5109,791,93602,071,0002,121,728expected "16384 ", got "349 "stderr
2Jul 5, 2026 06:5109,720,40802,061,0002,121,728expected "16384 ", got "349 "stderr
3Jul 5, 2026 06:5109,755,54002,074,0002,121,728expected "16384 ", got "349 "stderr
4Jan 1, 2026 16:063,590146,255,550116,473,0002,008,0002,412,544
5Jan 1, 2026 16:063,621145,054,534116,497,0003,012,0002,535,424
6Jan 1, 2026 16:063,629146,818,186118,755,0001,006,0002,351,104
7Jan 1, 2026 16:063,670140,110,334116,117,0005,005,0002,326,528
8Jan 1, 2026 16:073,674149,474,498118,221,0003,005,0002,326,528
9Jan 1, 2026 16:063,680146,291,590118,423,0003,010,0002,338,816
10Jan 1, 2026 16:073,694144,049,127118,889,0002,997,0002,330,624
11Jan 1, 2026 16:073,700149,161,585119,106,0003,002,0002,310,144
12Jan 1, 2026 16:063,719149,058,629119,727,0002,993,0002,322,432