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 27, 2026 23:44Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:53010,881,88401,634,0002,117,632expected "873 ", got "805 "
2Oct 31, 2026 14:53010,865,23701,793,0002,117,632expected "81 ", got "73 "
3Oct 31, 2026 14:535310,839,22701,768,0002,117,632
4Jun 27, 2026 23:453,309117,011,364108,129,0001,089,0002,113,536
5Jun 27, 2026 23:453,313117,047,120108,241,0001,107,0002,113,536
6Jun 27, 2026 23:453,314117,143,681108,214,0001,169,0002,113,536
7Jun 27, 2026 23:453,315117,181,039108,225,0001,174,0002,113,536
8Jun 27, 2026 23:453,315117,166,066108,291,0001,118,0002,113,536
9Jun 27, 2026 23:453,319117,316,546108,401,0001,128,0002,113,536
10Jun 27, 2026 23:453,322117,432,374108,516,0001,120,0002,113,536
11Jun 27, 2026 23:453,327117,579,640108,662,0001,129,0002,113,536
12Jun 27, 2026 23:453,330117,588,214108,719,0001,172,0002,113,536