摘要: AC代码 #include<cstdio> #include<queue> #include<iostream> # define M 2010 using namespace std; int m,n; char map[M][M]; int que[3][M*M]; int ans[M][M]; 阅读全文
posted @ 2020-08-26 16:20 panjoel 阅读(59) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n; char x[110]; int main(){ cin>>n; for(int i=1;i<=n;i++) cin>>x[i]; for(int i=1;i<=5;i++) 阅读全文
posted @ 2020-08-26 16:16 panjoel 阅读(213) 评论(0) 推荐(0)
摘要: AC代码 #include<iostream> using namespace std; int main(){ int n,m,a[100010]; cin>>n>>m; for(int i=1;i<=n;i++)cin>>a[i]; int ans=0; for(int i=1;i<=m;i++ 阅读全文
posted @ 2020-08-26 16:05 panjoel 阅读(106) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; char c[20][20]; char s[20][20]; char f[20][20]; int T; bool judge1() { int k=1,l=T; for(int i=1;i<=T 阅读全文
posted @ 2020-08-26 16:03 panjoel 阅读(135) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long cnt=1; char a[100010]; int main(){ while(cin>>a[cnt]) cnt++; cnt--; cout<<cnt; return 0; } 阅读全文
posted @ 2020-08-26 15:49 panjoel 阅读(57) 评论(0) 推荐(0)
摘要: AC代码 #include<iostream> using namespace std; long long a,b,c; char x,t,l; int main(){ while(cin>>x){ if(l!='=') if(x=='a'||x=='b'||x=='c') t=x; if(l== 阅读全文
posted @ 2020-08-26 15:44 panjoel 阅读(97) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long a[11],b[1010],sum=0; int main(){ for(int i=1;i<=10;i++){cin>>a[i];b[a[i]%42]++;} for(int i 阅读全文
posted @ 2020-08-26 15:41 panjoel 阅读(85) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n,m; char a[110][110]; int search(int x,int y){ int cnt=0; if(a[x-1][y]=='*') cnt++;//上 if 阅读全文
posted @ 2020-08-26 15:40 panjoel 阅读(15) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n,a[100010]; int main(){ cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<=n;i++){ if 阅读全文
posted @ 2020-08-26 15:38 panjoel 阅读(18) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n,a[100010],sum; int main(){ cin>>n; for(int i=1;i<=n;i++)cin>>a[i]; for(int i=1;i<n;i++){ 阅读全文
posted @ 2020-08-26 15:37 panjoel 阅读(27) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long s,r1,r2; int main(){ cin>>r1>>s; cout<<s*2-r1; return 0; } 阅读全文
posted @ 2020-08-26 15:36 panjoel 阅读(23) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n; double ans; struct node{ long long x; long long y; long long z; }a[100010]; bool cmp(no 阅读全文
posted @ 2020-08-26 15:35 panjoel 阅读(28) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; int a[105][105]; double sum; int main(){ int i,n,m; double t=0; cin>>n; cin>>m; for(i=0;i<n;i++){ fo 阅读全文
posted @ 2020-08-26 15:33 panjoel 阅读(57) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; int ch[1000],ma[1000],en[1000],sum[1000]; bool pd(int a,int b) { int n1=abs(ch[a]-ch[b]); int n2=abs 阅读全文
posted @ 2020-08-26 15:00 panjoel 阅读(186) 评论(0) 推荐(0)
摘要: AC代码 #include<iostream> #include<cmath> using namespace std; int num[1032][1032]; void huafen(int x,int y,int a){ int za=a/2; for(int i=0;i<za;i++){ f 阅读全文
posted @ 2020-08-26 14:59 panjoel 阅读(28) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; long long n; int main(){ cin>>n; if(n<=0) cout<<0; else cout<<(unsigned long long)n*2-1; return 0; } 阅读全文
posted @ 2020-08-26 14:57 panjoel 阅读(59) 评论(0) 推荐(0)
摘要: AC代码 #include<bits/stdc++.h> using namespace std; int n,a[1005][1005],flag,maxn,ans=-2147483648; int main() { cin >>n; for (int i=1;i<=n;i++) for (int 阅读全文
posted @ 2020-08-26 14:53 panjoel 阅读(93) 评论(0) 推荐(0)