摘要:
观察可以发现这个函数具有像斐波那契数列一样的序列 接着考虑这个函数的逆操作。 接着考虑答案为“NIE”时候的情况 #include<bits/stdc++.h> using namespace std; const int N=100005; int t,n,a[N]; int main(){ io 阅读全文
摘要:
由于交换前后在同一行或同一列的元素还会在同一行或同一列 所以根据这个对于每个元素判断一下即可。 #include<bits/stdc++.h> using namespace std; const int p=1000000; int t,n,m,a[1001][1001],b[1001][1001 阅读全文