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 listApr 27, 2026 13:48Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 05:42Tomislav Tunkovic10.21CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 06:090258,756,775224,991,00023,670,0002,113,536expected "2274405 ", got "2529426 "
2Sep 5, 2026 06:09061,581,10728,631,00022,326,0002,113,536expected "54194 ", got "65412 "
3Sep 5, 2026 06:090149,818,178117,063,00022,783,0002,113,536expected "2856075 ", got "2039012 "
4Apr 27, 2026 13:4926,679800,379,476753,763,00029,990,0002,768,896
5Apr 27, 2026 13:4926,698800,956,344751,298,00031,012,0002,338,816
6Apr 27, 2026 13:4926,716801,489,846754,936,00028,997,0002,465,792
7Apr 27, 2026 13:4926,799803,987,751755,541,00031,980,0002,551,808
8Apr 27, 2026 13:4926,922807,672,734754,382,00033,972,0002,306,048
9Apr 27, 2026 13:4926,932807,971,568755,603,00032,982,0002,551,808
10Apr 27, 2026 13:4927,193815,813,913766,661,00032,985,0002,539,520
11Apr 27, 2026 13:4927,278818,361,661764,668,00033,985,0002,772,992
12Apr 27, 2026 13:4927,588827,661,100768,442,00037,972,0002,551,808