摘要:
原题链接 题解 很巧妙,把等式移项之后,ab差最大的就是答案 code #include<bits/stdc++.h> using namespace std; #define ll long long struct node { int a,b,df,id; }c[200005]; bool cm 阅读全文
摘要:
原题链接 题解 犯了对变量定义不清晰的错误 code #include<bits/stdc++.h> using namespace std; #define ll long long ll a[300005]={0}; vector<int> G[1005]; int dp[1005]={0};/ 阅读全文
摘要:
原题链接 题解 你怎么能在地图都没有输入完成的情况下判断呢? code #include<bits/stdc++.h> using namespace std; string s[505]; int xx[4]={0,-1,1,0},yy[4]={1,0,0,-1}; int main() { in 阅读全文
摘要:
原题链接 题解 思考这类问题之前先考虑完成目标有几种方法,再考虑方法的可行性 code #include<bits/stdc++.h> using namespace std; int a[1005],b[1005]; int main() { int n,m; cin>>n>>m; for(int 阅读全文