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 listJan 13, 2026 22:44Adam FolwarcznyAdam FolwarcznyError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 15, 2026 20:49Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 20:56042,699,96625,686,0006,506,0002,113,536expected "148082 ", got "128250 "
2Oct 15, 2026 20:560142,172,925125,150,0006,541,0002,113,536expected "2106122 ", got "1189002 "
3Oct 15, 2026 20:5624818,631,4018,211,00002,117,632
4Jan 13, 2026 22:4416,212559,705,341526,000,0009,000,0002,486,272
5Jan 13, 2026 22:4416,235559,889,546527,763,0007,996,0002,396,160
6Jan 13, 2026 22:4416,239566,778,036527,890,0007,998,0002,347,008
7Jan 13, 2026 22:4416,244562,081,911526,037,00010,000,0002,351,104
8Jan 13, 2026 22:4416,268562,396,731529,860,0006,998,0002,293,760
9Jan 13, 2026 22:4416,285562,746,344531,407,0006,004,0002,510,848
10Jan 13, 2026 22:4416,287563,155,497529,489,0007,992,0002,338,816
11Jan 13, 2026 22:4416,308569,190,157530,165,0008,002,0002,273,280
12Jan 13, 2026 22:4416,317569,530,679528,485,0009,990,0002,297,856