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 11:09Victor 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:460347,343,928325,342,00012,429,0002,113,536expected "2101506 ", got "1186908 "
2Oct 31, 2026 14:46014,622,4353,486,0001,855,0002,117,632expected "266051 ", got "207492 "
3Oct 31, 2026 14:46010,947,54701,890,0002,117,632expected "1077 ", got "881 "
4Jun 22, 2026 11:105,062174,869,588130,362,00036,694,0002,113,536
5Jun 22, 2026 11:105,067174,838,047130,430,00036,784,0002,113,536
6Jun 22, 2026 11:105,071175,269,133130,515,00036,860,0002,113,536
7Jun 22, 2026 11:105,077175,198,226130,645,00036,900,0002,113,536
8Jun 22, 2026 11:105,081175,476,525130,655,00037,018,0002,113,536
9Jun 22, 2026 11:105,082175,613,967130,772,00036,940,0002,113,536
10Jun 22, 2026 11:105,082176,848,130130,779,00036,944,0002,113,536
11Jun 22, 2026 11:105,100176,091,424130,474,00037,835,0002,113,536
12Jun 22, 2026 11:105,139177,113,261131,821,00037,775,0002,113,536