题目 #include <bits/stdc++.h> using namespace std; string s1,s2; double ans; int main() { cin>>s1>>s2; for(int i=0;i<s1.size();i++){ for(int j=0;j<s2.size();j++){ if(i+…
题目 #include <bits/stdc++.h> using namespace std; struct tree{ int l,r; char v; }t[300]; void f(int x){ if(x==(int)'*')return; cout<<t[x].v; f(t[x].l); f(t…
题目 #include <bits/stdc++.h> using namespace std; string s1,s2; void f(string s1,string s2){ if(s1.size()<=0)return; cout<<s2[s2.size()-1]; int flag; for(int i=…
题目 #include <bits/stdc++.h> using namespace std; struct tree{ int l,r; char v; }t[3001]; string s; int n; int two[12]={1,2,4,8,16,32,64,128,256,512,1024,2048}; v…
题目 #include <bits/stdc++.h> using namespace std; int a[101]; int main(){ int t; cin>>t; while(t--){ int n,pd=2,x=0,b=0; cin>>n; for(int i=1;i<=n;i++){ cin>>a[i];…
时隔许久,再次见到l,r,i,j同框,超时报错不停歇,为了过题堆暴力的时候,我知道全部都回来了
https://codeforces.com/contest/2064/problem/A #include<bits/stdc++.h> using namespace std; int t,x,flag,ll; string n; int main(){ //freopen("in.txt","r",stdin); //freope…
https://codeforces.com/contest/2067/problem/C #include<bits/stdc++.h> using namespace std; //暴力 long long chm[11]={0,9,99,999,9999,99999,999999,9999999,99999999,9999…
https://codeforces.com/contest/2067/problem/B #include<bits/stdc++.h> using namespace std; int t,n; int x,a[1005],sta[1005],stb[1005]; int main(){ //freopen(…
题目 #include<bits/stdc++.h> using namespace std; int x,n,m; int main(){ //freopen("in.txt","r",stdin); //freopen("out.txt","w",stdout); cin>>x; while(x--){ cin>&…