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 23:23Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 16, 2026 23:52063,649,142157,092,0001,230,0002,170,880expected "1018454 ", got "1018453 "stderr
2Aug 16, 2026 23:522,08562,574,468156,465,0001,282,0002,170,880stderr
3Aug 16, 2026 23:522,09962,970,086157,195,0001,231,0002,174,976stderr
4Aug 16, 2026 23:522,10063,001,821157,792,0001,226,0002,170,880stderr
5Aug 16, 2026 23:522,10263,065,077156,807,0001,008,0002,170,880stderr
6Aug 16, 2026 23:522,11063,328,021158,592,0001,219,0002,170,880stderr
7Aug 16, 2026 23:522,11063,301,115157,458,0001,003,0002,170,880stderr
8Aug 16, 2026 23:522,11063,310,013157,783,0001,214,0002,170,880stderr
9Aug 16, 2026 23:522,13464,045,843157,009,0001,226,0002,170,880stderr