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 25, 2026 12:07Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:52Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:520213,707,673199,962,0003,030,0002,113,536expected "2906760 ", got "1991458 "
2Oct 31, 2026 17:520211,882,680198,012,0003,031,0002,113,536expected "2902140 ", got "1984841 "
3Oct 31, 2026 17:5214015,156,8001,549,0003,099,0002,117,632
4Mar 25, 2026 12:0715,349536,693,417501,522,0004,995,0002,498,560
5Mar 25, 2026 12:0715,364532,290,964502,028,0005,000,0002,465,792
6Mar 25, 2026 12:0715,394537,063,257502,002,0006,000,0002,273,280
7Mar 25, 2026 12:0715,402538,182,113506,273,0002,001,0002,461,696
8Mar 25, 2026 12:0715,426533,844,581506,061,0003,000,0002,465,792
9Mar 25, 2026 12:0715,469541,376,744504,498,0005,994,0002,461,696
10Mar 25, 2026 12:0715,503540,058,565508,607,0002,997,0002,265,088
11Mar 25, 2026 12:0715,505540,673,422506,669,0004,996,0002,338,816
12Mar 25, 2026 12:0715,602541,686,073508,854,0005,998,0002,465,792