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:40Dominique 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:420239,703,436221,908,0006,943,0002,113,536expected "2905374 ", got "1988307 "
2Oct 31, 2026 17:420240,815,963222,537,0006,887,0002,113,536expected "2905250 ", got "1990136 "
3Oct 31, 2026 17:420242,032,578224,218,0007,118,0002,113,536expected "2900106 ", got "1984330 "
4Mar 16, 2026 23:4020,291694,980,387658,594,00010,993,0002,359,296
5Mar 16, 2026 23:4020,299699,011,399658,881,00010,998,0002,457,600
6Mar 16, 2026 23:4020,310701,605,458657,212,00013,004,0002,473,984
7Mar 16, 2026 23:4020,343700,083,403660,334,00010,988,0002,330,624
8Mar 16, 2026 23:4020,387697,583,582660,791,00011,996,0002,404,352
9Mar 16, 2026 23:4020,449698,342,023664,815,0009,997,0002,457,600
10Mar 16, 2026 23:4020,559702,378,680668,448,0009,991,0002,306,048
11Mar 16, 2026 23:4020,793712,502,251675,186,00010,986,0002,445,312
12Mar 16, 2026 23:4020,836722,404,173680,601,0006,995,0002,416,640