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:32Dominique GarmierDominique GarmierError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 17:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 17:450244,513,988226,712,0007,104,0002,113,536expected "2907773 ", got "1991242 "
2Oct 31, 2026 17:453711,703,9161,231,00002,117,632
3Oct 31, 2026 17:4551827,826,87710,183,0006,936,0002,113,536
4Mar 16, 2026 23:3221,131722,977,272688,345,0008,991,0002,457,600
5Mar 16, 2026 23:3221,187724,938,271687,166,00012,002,0002,478,080
6Mar 16, 2026 23:3221,201728,721,710688,648,00010,994,0002,461,696
7Mar 16, 2026 23:3221,206724,979,034687,812,00011,996,0002,453,504
8Mar 16, 2026 23:3221,222727,528,482688,324,00011,988,0002,461,696
9Mar 16, 2026 23:3221,250733,086,779690,251,00010,988,0002,293,760
10Mar 16, 2026 23:3221,269726,668,490689,869,00011,997,0002,273,280
11Mar 16, 2026 23:3221,289731,547,931692,547,0009,993,0002,338,816
12Mar 16, 2026 23:3221,647742,017,341705,365,0008,991,0002,428,928