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 24, 2026 08:32Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 22:30Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 22:36012,708,5653,771,0001,534,0002,220,032expected "601 ", got "625 "stderr
2Sep 4, 2026 22:36012,229,8552,978,0001,788,0002,220,032expected "1053 ", got "1223 "stderr
3Sep 4, 2026 22:36011,589,4761,693,0002,522,0002,273,280expected "1506 ", got "1523 "stderr
4Aug 24, 2026 08:341,71851,545,211118,762,0003,126,0002,289,664stderr
5Aug 24, 2026 08:341,73251,987,676120,481,0003,098,0002,306,048stderr
6Aug 24, 2026 08:341,73952,197,487119,158,0003,063,0002,215,936stderr
7Aug 24, 2026 08:341,74252,289,084119,277,0003,115,0002,273,280stderr
8Aug 24, 2026 08:341,74452,329,318119,521,0003,089,0002,256,896stderr
9Aug 24, 2026 08:341,75852,754,813121,265,0003,213,0002,289,664stderr
10Aug 24, 2026 08:341,75952,772,127120,062,0003,041,0002,256,896stderr
11Aug 24, 2026 08:341,76052,809,739119,485,0003,205,0002,289,664stderr
12Aug 24, 2026 08:341,78353,492,753121,591,0002,082,0002,273,280stderr