3 ms·
The AZSPCS Sums of Powers problem was similar [0]. I found the optimizations surprisingly convoluted for how little of a speed up they provide. Writing an effic
by deckar01 5y ago
The AZSPCS Sums of Powers problem was similar [0]. I found the optimizations surprisingly convoluted for how little of a speed up they provide. Writing an efficient backtracking, depth-first search was fun though.
[0]: http://azspcs.com/Contest/SumsOfPowers http://azspcs.com/Contest/SumsOfPowers