|
|
back to boardHint, very easy s1 = ['1 2 3 4 5', '1 4 3 2 5', '1 3 2 4 5', '1 3 4 2 5'] Re: Hint, very easy [deleted] Edited by author 24.06.2014 02:43 Re: Hint, very easy Posted by Egor 30 Oct 2016 17:49 int order[3] = {2, 3, 4}; do { if (order[2] == 3) continue; calculate_distance(); } while (next_permutation(order, order + 3); |
|
|