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

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 13:23Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 13:250348,695,701326,526,00012,573,0002,113,536expected "2106358 ", got "1190924 "
2Oct 31, 2026 13:250350,391,837328,953,00012,163,0002,113,536expected "2106783 ", got "1190625 "
3Oct 31, 2026 13:25011,437,13002,308,0002,117,632expected "6242 ", got "5454 "
4Jun 22, 2026 10:375,127177,304,059132,313,00036,907,0002,113,536
5Jun 22, 2026 10:375,130178,315,883132,588,00036,708,0002,113,536
6Jun 22, 2026 10:375,136177,090,461132,622,00036,887,0002,113,536
7Jun 22, 2026 10:375,141177,169,966132,811,00036,863,0002,113,536
8Jun 22, 2026 10:375,147177,488,697133,067,00036,806,0002,113,536
9Jun 22, 2026 10:375,150177,847,249133,123,00036,839,0002,113,536
10Jun 22, 2026 10:375,154177,829,685132,279,00037,819,0002,113,536
11Jun 22, 2026 10:375,164178,274,597133,849,00036,568,0002,113,536
12Jun 22, 2026 10:375,176178,825,257133,194,00037,636,0002,113,536