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 12:39Rajarshi BasuRajarshi BasuError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 17:15Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 17:16012,845,72003,576,0002,117,632expected "16384 ", got "445 "
2Jul 4, 2026 17:16012,995,51203,536,0002,117,632expected "16384 ", got "445 "
3Jul 4, 2026 17:16012,890,82003,449,0002,117,632expected "16384 ", got "445 "
4Jan 2, 2026 12:393,313141,975,938106,319,0003,009,0002,285,568
5Jan 2, 2026 12:393,319138,019,258107,502,0002,009,0002,285,568
6Jan 2, 2026 12:393,325143,121,901107,724,0001,994,0002,285,568
7Jan 2, 2026 12:393,326135,923,263106,764,0002,993,0002,383,872
8Jan 2, 2026 12:393,330135,596,052106,905,0002,997,0002,285,568
9Jan 2, 2026 12:393,334140,563,440108,034,0002,000,0002,387,968
10Jan 2, 2026 12:393,338134,786,224108,137,0002,002,0002,506,752
11Jan 2, 2026 12:393,343133,783,508108,324,0002,006,0002,285,568
12Jan 2, 2026 12:393,346135,322,399108,409,0002,007,0002,375,680
13Jan 2, 2026 12:393,357137,134,158108,785,0001,996,0002,383,872
14Jan 2, 2026 12:393,361140,746,085108,901,0001,998,0002,285,568
15Jan 2, 2026 12:393,422143,967,617110,931,0001,998,0002,379,776