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 2, 2026 04:35Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:24Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:340423,587,881400,550,00012,146,0002,117,632expected "2903499 ", got "2895055 "
2Oct 31, 2026 17:340427,644,854404,493,00012,091,0002,117,632expected "2901413 ", got "2893217 "
3Oct 31, 2026 17:343812,016,53701,259,0002,121,728
4Dec 27, 2025 21:0021,033720,726,108678,093,00016,002,0002,494,464
5Dec 27, 2025 21:0021,114719,464,340680,759,00015,994,0002,519,040
6Jan 2, 2026 04:3521,132728,888,674679,383,00017,983,0002,342,912
7Dec 27, 2025 21:0021,156728,245,547682,146,00016,003,0002,383,872
8Dec 27, 2025 21:0021,172722,272,854683,684,00014,993,0002,277,376
9Dec 27, 2025 21:0021,194728,708,218681,431,00017,985,0002,351,104
10Jan 2, 2026 04:3521,204723,440,287684,741,00014,994,0002,506,752
11Dec 27, 2025 21:0021,269727,933,258685,880,00015,997,0002,514,944
12Dec 27, 2025 21:0021,330726,958,153688,894,00014,997,0002,277,376
13Jan 2, 2026 04:3521,366734,657,605688,068,00017,001,0002,273,280
14Dec 27, 2025 21:0021,805747,772,389703,578,00015,990,0002,277,376
15Dec 27, 2025 21:0021,856745,092,206704,251,00016,981,0002,285,568