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 listSep 4, 2026 07:43Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 02:36Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 04:08012,330,8156,669,0001,229,0002,174,976expected "2871 ", got "2903 "stderr
2Sep 5, 2026 04:08020,020,026,73060,020,440,0006,056,00069,632Killed by timeout
3Sep 4, 2026 07:551,63449,033,602116,030,0001,294,0002,170,880stderr
4Sep 4, 2026 07:551,65349,616,072118,142,0001,247,0002,170,880stderr
5Sep 4, 2026 07:551,65549,667,362118,443,0001,211,0002,170,880stderr
6Sep 4, 2026 07:551,65749,736,453116,946,0001,005,0002,170,880stderr
7Sep 4, 2026 07:551,65949,792,604115,824,0001,004,0002,170,880stderr
8Sep 4, 2026 07:551,67050,100,236119,176,0001,246,0002,170,880stderr
9Sep 4, 2026 07:551,67150,150,536119,532,0001,294,0002,170,880stderr
10Sep 4, 2026 07:551,67550,255,994118,922,0001,006,0002,170,880stderr
11Sep 4, 2026 07:551,69150,755,523116,510,0001,267,0002,170,880stderr