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 listDec 19, 2025 19:46Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 16:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:49040,192,53024,759,0004,142,0002,117,632expected "390877 ", got "305104 "stderr
2Oct 31, 2026 16:490132,985,457117,945,0004,141,0002,117,632expected "2102627 ", got "1184402 "stderr
3Oct 31, 2026 16:49023,985,6139,374,0003,261,0002,117,632expected "218898 ", got "174073 "stderr
4Dec 19, 2025 19:485,818217,212,230187,008,0005,000,0002,519,040
5Dec 19, 2025 19:485,830221,223,869189,393,0003,006,0002,514,944
6Dec 19, 2025 19:475,854216,768,220186,164,0007,006,0002,510,848
7Dec 19, 2025 19:485,858216,836,175188,296,0005,007,0002,514,944
8Dec 19, 2025 19:465,860226,002,551187,372,0006,011,0002,334,720
9Dec 19, 2025 19:485,869223,455,018186,684,0006,988,0002,514,944
10Dec 19, 2025 19:485,883217,957,901189,137,0005,003,0002,514,944
11Dec 19, 2025 19:485,886220,735,629187,224,0007,008,0002,412,544
12Dec 19, 2025 19:485,903221,359,242188,811,0005,994,0002,371,584
13Dec 19, 2025 19:475,903218,587,103188,791,0005,993,0002,424,832
14Dec 19, 2025 19:475,913219,240,753191,119,0004,002,0002,506,752
15Dec 19, 2025 19:485,919225,696,761189,344,0005,979,0002,449,408
16Dec 19, 2025 19:485,924227,858,601190,492,0004,986,0002,510,848
17Dec 19, 2025 19:466,074228,501,081193,474,0006,981,0002,461,696
18Dec 19, 2025 19:466,114225,797,867196,784,0004,994,0002,494,464