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 14:45Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 9, 2026 08:45Tomislav Tunkovic34.70CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 9, 2026 08:470244,117,143230,917,0003,014,0002,117,632expected "2919937 ", got "2919713 "
2Sep 9, 2026 08:470242,926,562229,773,0003,013,0002,117,632expected "2919933 ", got "2919691 "
3Sep 9, 2026 08:470253,819,638238,080,0004,006,0002,117,632expected "2919933 ", got "2919708 "
4Jan 9, 2026 14:456,716244,544,327217,648,0003,993,0002,371,584
5Jan 9, 2026 14:456,740246,878,473216,416,0006,011,0002,445,312
6Jan 9, 2026 14:456,746250,005,116215,623,0006,987,0002,347,008
7Jan 9, 2026 14:456,769249,908,598216,358,0007,011,0002,490,368
8Jan 9, 2026 14:456,795254,310,366219,238,0005,005,0002,363,392
9Jan 9, 2026 14:456,798254,881,241218,337,0006,009,0002,293,760
10Jan 9, 2026 14:457,058259,604,478227,918,0004,998,0002,347,008
11Jan 9, 2026 14:457,142266,088,196229,684,0005,991,0002,306,048
12Jan 9, 2026 14:457,143260,509,072232,722,0002,996,0002,326,528