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 listMay 11, 2026 08:35Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:460185,034,279153,601,00020,247,0002,113,536expected "2108299 ", got "1190306 "
2Oct 31, 2026 14:46011,914,18801,428,0002,117,632expected "247 ", got "227 "
3Oct 31, 2026 14:463011,390,4601,019,00002,117,632
4May 11, 2026 08:3611,956404,537,654349,300,00045,259,0002,113,536
5May 11, 2026 08:3611,981406,203,531349,689,00045,696,0002,113,536
6May 11, 2026 08:3611,984405,430,245349,492,00045,986,0002,113,536
7May 11, 2026 08:3612,023405,664,501350,009,00046,754,0002,113,536
8May 11, 2026 08:3612,032407,688,215350,412,00046,666,0002,113,536
9May 11, 2026 08:3612,064409,776,136353,068,00045,069,0002,113,536
10May 11, 2026 08:3612,081407,468,926353,269,00045,415,0002,113,536
11May 11, 2026 08:3612,109409,752,815353,227,00046,370,0002,113,536
12May 11, 2026 08:3612,177410,574,207353,767,00048,075,0002,113,536