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 9, 2026 19:14Josu San MartinJosu San MartinError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 15:59Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 16:11076,931,79462,837,0003,305,0002,117,632expected "2903956 ", got "2903711 "
2Oct 31, 2026 16:11077,055,46562,990,0003,299,0002,117,632expected "2904615 ", got "2904353 "
3Oct 31, 2026 16:11077,166,03363,195,0003,296,0002,117,632expected "2904308 ", got "2904059 "
4Jan 9, 2026 16:046,260237,124,432201,594,0004,989,0002,347,008
5Jan 9, 2026 16:046,262232,614,214202,639,0003,992,0002,342,912
6Jan 9, 2026 16:046,262231,483,282203,646,0002,994,0002,342,912
7Jan 9, 2026 19:146,266235,824,437201,784,0004,994,0002,359,296
8Jan 9, 2026 16:046,270235,146,658202,918,0003,998,0002,342,912
9Jan 9, 2026 16:046,272231,785,033200,988,0005,999,0002,420,736
10Jan 9, 2026 16:046,281230,618,673202,277,0005,006,0002,347,008
11Jan 9, 2026 19:146,284233,585,770201,368,0006,010,0002,457,600
12Jan 9, 2026 19:146,290235,484,820202,590,0004,989,0002,342,912
13Jan 9, 2026 16:046,291239,280,780200,608,0006,986,0002,342,912
14Jan 9, 2026 16:046,297240,389,624203,794,0003,995,0002,478,080
15Jan 9, 2026 16:046,310234,445,570201,220,0007,007,0002,338,816