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 07:47Victor 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:530172,215,481141,065,00019,951,0002,117,632expected "2109207 ", got "2109206 "
2Oct 31, 2026 14:530177,512,694145,159,00021,493,0002,113,536expected "2103794 ", got "2103793 "
3Oct 31, 2026 14:530177,547,413145,348,00021,493,0002,113,536expected "2102715 ", got "2102714 "
4May 11, 2026 07:4914,164479,173,033421,637,00045,802,0002,113,536
5May 11, 2026 07:4914,174476,624,387421,699,00046,049,0002,113,536
6May 11, 2026 07:4914,183479,396,574422,628,00045,419,0002,113,536
7May 11, 2026 07:4914,201477,759,112422,925,00045,735,0002,113,536
8May 11, 2026 07:4914,215478,052,137424,071,00045,038,0002,113,536
9May 11, 2026 07:4914,250479,031,096424,543,00045,719,0002,113,536
10May 11, 2026 07:4914,298480,737,548424,932,00046,926,0002,113,536
11May 11, 2026 07:4914,345483,381,035425,865,00047,535,0002,113,536
12May 11, 2026 07:4914,463486,192,121430,995,00046,288,0002,113,536