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 17, 2026 21:41Victor 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 17, 2026 21:45065,650,111164,669,0001,257,0002,162,688expected "1025916 ", got "1025915 "stderr
2Aug 17, 2026 21:45064,923,043164,965,0001,216,0002,162,688expected "1022317 ", got "1022316 "stderr
3Aug 17, 2026 21:452,15864,761,580163,105,0001,231,0002,162,688stderr
4Aug 17, 2026 21:452,16664,993,582163,469,0001,211,0002,162,688stderr
5Aug 17, 2026 21:452,16665,007,533164,564,0001,150,0002,162,688stderr
6Aug 17, 2026 21:452,17165,149,939164,817,0001,154,0002,162,688stderr
7Aug 17, 2026 21:452,17165,138,367165,291,0001,142,0002,162,688stderr
8Aug 17, 2026 21:452,17765,332,639163,392,0001,003,0002,162,688stderr
9Aug 17, 2026 21:452,18465,524,347166,185,0001,153,0002,162,688stderr