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 listJun 22, 2026 09:44Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 01:56Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 03:330271,186,600223,965,00038,586,0002,113,536expected "2919926 ", got "1439991 "
2Sep 5, 2026 03:330271,704,482224,097,00038,808,0002,113,536expected "2919923 ", got "1439996 "
3Sep 5, 2026 03:330270,876,461223,726,00038,863,0002,113,536expected "2919941 ", got "1439997 "
4Jun 22, 2026 09:455,246181,409,567136,241,00036,893,0002,113,536
5Jun 22, 2026 09:455,264181,414,704137,095,00036,639,0002,113,536
6Jun 22, 2026 09:455,274181,576,558136,425,00037,637,0002,113,536
7Jun 22, 2026 09:455,277182,046,905137,438,00036,726,0002,113,536
8Jun 22, 2026 09:455,281181,892,994136,458,00037,836,0002,113,536
9Jun 22, 2026 09:455,284182,550,012136,532,00037,848,0002,113,536
10Jun 22, 2026 09:455,287182,349,410136,537,00037,946,0002,113,536
11Jun 22, 2026 09:455,287182,460,250136,864,00037,613,0002,113,536
12Jun 22, 2026 09:455,313183,356,989136,650,00038,682,0002,113,536