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 9, 2026 15:05Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:46Tomislav Tunkovic16.94CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:520231,377,200216,683,0004,048,0002,117,632expected "2919935 ", got "2919704 "
2Sep 9, 2026 08:520229,311,017215,103,0004,031,0002,117,632expected "2919949 ", got "2919715 "
3Sep 9, 2026 08:520230,052,075216,081,0004,010,0002,117,632expected "2919938 ", got "2919698 "
4Jan 9, 2026 15:056,318235,481,162201,524,0006,983,0002,326,528
5Jan 9, 2026 15:056,325241,770,308203,727,0004,993,0002,449,408
6Jan 9, 2026 15:056,328239,131,913204,837,0003,996,0002,355,200
7Jan 9, 2026 15:056,336232,523,024202,087,0007,003,0002,441,216
8Jan 9, 2026 15:056,355237,188,712205,707,0003,994,0002,351,104
9Jan 9, 2026 15:056,358236,308,108203,811,0005,994,0002,371,584
10Jan 9, 2026 15:056,362243,833,642204,948,0004,998,0002,404,352
11Jan 9, 2026 15:056,366233,730,437203,061,0007,002,0002,424,832
12Jan 9, 2026 15:056,398239,289,362208,118,0003,001,0002,428,928