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

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

Challenge History
DateChallengerCostTypeStatus
Jul 4, 2026 22:02Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 22:02014,320,23803,145,0002,117,632expected "16384 ", got "574 "
2Jul 4, 2026 22:02014,462,25503,642,0002,117,632expected "16384 ", got "574 "
3Jul 4, 2026 22:02024,038,33303,497,0002,113,536expected "16384 ", got "574 "
4Jan 2, 2026 12:083,434137,677,169111,303,0002,005,0002,392,064
5Jan 2, 2026 12:083,444141,015,129110,668,0002,991,0002,379,776
6Jan 2, 2026 12:073,446140,957,879110,720,0002,992,0002,285,568
7Jan 2, 2026 12:073,447137,709,819110,746,0002,993,0002,285,568
8Jan 2, 2026 12:073,451147,628,191110,891,0002,997,0002,277,376
9Jan 2, 2026 12:083,452139,183,348110,910,0002,997,0002,387,968
10Jan 2, 2026 12:083,461138,870,285111,192,0003,005,0002,506,752
11Jan 2, 2026 12:083,465143,455,145111,332,0003,008,0002,383,872
12Jan 2, 2026 12:083,465140,974,953111,350,0003,009,0002,383,872
13Jan 2, 2026 12:083,486139,145,382113,043,0002,000,0002,285,568
14Jan 2, 2026 12:083,548139,453,956115,094,0002,001,0002,383,872
15Jan 2, 2026 12:083,580143,523,588115,122,0003,003,0002,281,472