摘要: A Phoenix and Balance 题意: 把2^1,2^2,……2^n;分成两份,两份的差最小,保证n是偶数。 因为2^n=S(n-1)+2; 则最小的差即为Sn-2*(S(n-1)-S(n/2-1)); #include<iostream> #include<cstdio> #inclu 阅读全文
posted @ 2020-05-20 17:25 Leviathan_Sei 阅读(133) 评论(0) 推荐(0)