Unique strings v2 Sergey Svistunov

Same problem as Unique strings, but with 3 CPUs available and scoring based on wall time instead of CPU time.

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 listAug 16, 2026 15:38Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 06:09Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 06:27013,576,3235,501,0001,234,0002,174,976expected "19202 ", got "15206 "stderr
2Sep 5, 2026 06:27011,926,0986,048,0001,243,0002,174,976expected "28679 ", got "19947 "stderr
3Sep 5, 2026 06:27020,019,929,31860,021,130,0005,032,00069,632Killed by timeout
4Aug 16, 2026 15:422,07162,143,920154,647,0001,228,0002,170,880stderr
5Aug 16, 2026 15:422,07762,312,013156,430,0001,228,0002,170,880stderr
6Aug 16, 2026 15:422,08062,425,591155,716,0001,214,0002,170,880stderr
7Aug 16, 2026 15:422,10863,252,268156,309,0001,234,0002,170,880stderr
8Aug 16, 2026 15:422,11063,324,022155,992,0001,227,0002,170,880stderr
9Aug 16, 2026 15:422,11263,372,970155,071,0001,247,0002,170,880stderr
10Aug 16, 2026 15:422,11563,464,822154,829,0001,017,0002,170,880stderr
11Aug 16, 2026 15:422,11663,480,785154,130,0001,237,0002,170,880stderr
12Aug 16, 2026 15:422,12063,616,741154,112,0001,240,0002,170,880stderr