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 16:30Victor 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 16:31060,952,438150,866,0001,237,0002,170,880expected "1021701 ", got "1021700 "stderr
2Aug 16, 2026 16:312,03661,089,857152,689,0001,226,0002,170,880stderr
3Aug 16, 2026 16:312,05761,720,510153,276,0001,239,0002,170,880stderr
4Aug 16, 2026 16:312,06661,982,361152,792,0001,238,0002,170,880stderr
5Aug 16, 2026 16:312,07162,158,735152,678,0001,238,0002,170,880stderr
6Aug 16, 2026 16:312,07762,315,180154,459,0001,241,0002,170,880stderr
7Aug 16, 2026 16:312,08062,400,878153,667,0001,236,0002,170,880stderr
8Aug 16, 2026 16:312,09162,738,889154,128,0001,256,0002,170,880stderr
9Aug 16, 2026 16:312,11963,593,185152,324,0001,249,0002,170,880stderr