摘要:
A. 随便判一下,注意边界 1 #include<bits/stdc++.h> 2 #define ll long long 3 using namespace std; 4 int T; 5 int n,x,a,b; 6 int main() 7 { 8 cin>>T; 9 while(T--) 阅读全文
摘要:
A. 显然构造一个蛇形就行了 复杂度\(O(r*c)\) 1 #include<bits/stdc++.h> 2 #define ll long long 3 #define ull unsigned long long 4 #define pii pair<int,int> 5 #define p 阅读全文
摘要:
心态爆炸,打出gg。。。 A 爆long long fst了,B看错题半天然后又写挂一个细节 原地爆炸,差点炸出div1了qwq A. 考虑枚举走了几个完整段,分情况讨论一下 然后就是一个gcd 注意写的不好可能会爆long long 1 #include<bits/stdc++.h> 2 #def 阅读全文