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:20Dominique 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:450251,907,485233,815,0006,874,0002,113,536expected "2905749 ", got "1989354 "
2Oct 31, 2026 17:450252,016,095234,265,0007,016,0002,113,536expected "2905039 ", got "1989322 "
3Oct 31, 2026 17:4513515,048,1094,477,00002,117,632
4Mar 16, 2026 23:2025,857884,311,210841,288,00011,989,0002,375,680
5Mar 16, 2026 23:2025,864884,541,968842,513,00010,993,0002,342,912
6Mar 16, 2026 23:2025,900881,672,613840,712,00013,995,0002,482,176
7Mar 16, 2026 23:2025,911880,884,273846,055,0009,000,0002,519,040
8Mar 16, 2026 23:2025,918883,788,500844,308,00010,990,0002,457,600
9Mar 16, 2026 23:2025,955880,250,170844,522,00011,993,0002,457,600
10Mar 16, 2026 23:2026,193888,500,870848,397,00015,988,0002,359,296
11Mar 16, 2026 23:2026,213894,901,919855,027,00010,000,0002,437,120
12Mar 16, 2026 23:2026,333896,520,104856,014,00012,985,0002,453,504