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 22:01Victor 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 22:040105,485,345280,943,0003,100,0002,166,784expected "1022538 ", got "1022537 "stderr
2Aug 16, 2026 22:043,487104,633,785280,188,0003,202,0002,166,784stderr
3Aug 16, 2026 22:043,498104,952,548280,796,0003,416,0002,166,784stderr
4Aug 16, 2026 22:043,509105,280,077279,082,0003,482,0002,166,784stderr
5Aug 16, 2026 22:043,516105,491,816281,200,0003,365,0002,166,784stderr
6Aug 16, 2026 22:043,549106,496,479285,851,0003,197,0002,166,784stderr
7Aug 16, 2026 22:043,557106,730,359280,829,0003,364,0002,166,784stderr
8Aug 16, 2026 22:043,567107,038,260286,142,0003,207,0002,166,784stderr
9Aug 16, 2026 22:043,575107,271,202284,473,0003,275,0002,166,784stderr