练习4-6 原版的 Exercise 4.6. Let expressions are derived expressions, because (let (( ) - ( )) ) is equivalent to ((lambda ( - ) ) ) Implement a syntactic transformation let->combination that reduces evaluating let expressions to evaluating combinations o…
http://uoj.ac/problem/150 用树链剖分求lca,二分答案树上差分判断. 时间复杂度$O(nlogn)$,n,m同阶. #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N = 300003; int in() { int k = 0, fh = 1; char c = getchar(); for(; c < '0' |…