摘要:
#include <iostream> #include <algorithm> #include <string.h> using namespace std; int dp[32768]; int main() { int N; int a[] = { 1,2,3 }; while (cin > 阅读全文
摘要:
HDU-5969:http://acm.hdu.edu.cn/showproblem.php?pid=5969 一开始也是分了类,觉得要两种情况,l 与 r 位数相同与不同的情况,仔细想一下,可以一起处理,从最高位(左侧符号位)开始,遇到不同后面全部补1即可。 刚写好交信心满满,一交就Wrong a 阅读全文