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 28, 2026 00:23Victor 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:5301,748,902,6071,736,350,0003,216,0002,113,536expected "2104992 ", got "1748588 "
2Oct 31, 2026 14:5301,762,665,6301,750,065,0003,251,0002,113,536expected "2107825 ", got "1747287 "
3Oct 31, 2026 14:53013,113,34303,838,0002,117,632expected "272 ", got "258 "
4Jun 28, 2026 00:246,211214,287,421201,731,0003,258,0002,113,536
5Jun 28, 2026 00:246,212212,756,496201,761,0003,242,0002,113,536
6Jun 28, 2026 00:246,245213,955,061202,828,0003,270,0002,113,536
7Jun 28, 2026 00:246,250213,993,764203,010,0003,259,0002,113,536
8Jun 28, 2026 00:246,259214,412,025203,314,0003,261,0002,113,536
9Jun 28, 2026 00:246,262214,474,511203,427,0003,223,0002,113,536
10Jun 28, 2026 00:246,267214,681,957203,524,0003,315,0002,113,536
11Jun 28, 2026 00:246,277214,908,900203,830,0003,322,0002,113,536
12Jun 28, 2026 00:246,285215,524,759204,106,0003,308,0002,113,536