BZOJ4993 [Usaco2017 Feb]Why Did the Cow Cross the Road II 动态规划 树状数组
欢迎访问~原文出处——博客园-zhouzhendong去博客园看该题解题目传送门-BZOJ4993题意概括有上下两行长度为n的数字序列A和序列B,都是1到n的排列,若abs(A[i]-B[j])#include#include#include#includeusingnamespacestd;voidread(int&x){x=0;charch=getchar();while(!('0'0;x-=