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 listMar 16, 2026 23:48Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:38Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:510354,504,993336,891,0006,936,0002,113,536expected "2900586 ", got "1983566 "
2Oct 31, 2026 17:510364,807,180346,986,0007,054,0002,113,536expected "2907921 ", got "1991341 "
3Oct 31, 2026 17:510358,316,369340,523,0007,018,0002,113,536expected "2903853 ", got "1988419 "
4Mar 16, 2026 23:4820,092689,413,557653,052,00010,000,0002,453,504
5Mar 16, 2026 23:4820,167687,258,756656,506,0008,993,0002,387,968
6Mar 16, 2026 23:4820,180696,063,549654,931,00010,998,0002,310,144
7Mar 16, 2026 23:4820,200692,448,792656,621,0009,994,0002,424,832
8Mar 16, 2026 23:4820,212688,290,621658,994,0007,999,0002,293,760
9Mar 16, 2026 23:4820,253696,726,922654,375,00013,986,0002,359,296
10Mar 16, 2026 23:4820,524704,218,527667,318,0009,989,0002,310,144
11Mar 16, 2026 23:4820,531705,973,293667,518,0009,992,0002,457,600
12Mar 16, 2026 23:4820,552710,110,241665,246,00012,985,0002,457,600