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 21, 2025 13:21Cameron AavikCameron AavikError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 19:26Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 19:38015,346,8312,116,0003,186,0002,146,304expected "1771 ", got "1770 "
2Oct 15, 2026 19:38020,011,354,23819,971,722,00027,302,00073,728Killed by timeout
3Oct 15, 2026 19:385911,901,88501,955,0002,203,648
4Jan 21, 2025 13:2131,6671,069,241,556975,072,00069,933,0002,293,760
5Jan 21, 2025 13:2131,6971,077,223,832974,079,00071,932,0002,433,024
6Jan 21, 2025 13:2131,8541,074,709,480988,245,00062,951,0002,445,312
7Jan 21, 2025 13:2131,9091,080,745,830983,006,00070,000,0002,375,680
8Jan 21, 2025 13:2131,9111,088,493,091990,114,00062,943,0002,387,968
9Jan 21, 2025 13:2131,9511,079,529,840990,423,00063,962,0002,539,520
10Jan 21, 2025 13:2132,0381,081,945,644994,305,00062,956,0002,306,048
11Jan 21, 2025 13:2132,0561,087,280,925986,929,00070,923,0002,424,832
12Jan 21, 2025 13:2132,2271,093,378,043998,532,00064,969,0002,424,832