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 10:11Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:49Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:51010,699,27601,612,0002,117,632expected "48 ", got "45 "
2Oct 31, 2026 14:510353,220,030330,897,00012,457,0002,113,536expected "2107234 ", got "1191872 "
3Oct 31, 2026 14:510352,488,226330,842,00012,193,0002,113,536expected "2107279 ", got "1191343 "
4Jun 22, 2026 10:145,195178,900,353134,689,00036,758,0002,113,536
5Jun 22, 2026 10:145,198179,060,532134,758,00036,785,0002,113,536
6Jun 22, 2026 10:145,199179,151,422134,723,00036,853,0002,113,536
7Jun 22, 2026 10:145,205179,230,940135,094,00036,694,0002,113,536
8Jun 22, 2026 10:145,211179,586,608135,117,00036,855,0002,113,536
9Jun 22, 2026 10:145,212179,485,503134,315,00037,702,0002,113,536
10Jun 22, 2026 10:145,221179,783,055134,667,00037,638,0002,113,536
11Jun 22, 2026 10:145,226180,013,731135,883,00036,590,0002,113,536
12Jun 22, 2026 10:145,229180,211,831134,919,00037,666,0002,113,536