日期: 2025年12月3日

3 篇文章

洛谷P1229 遍历问题
题目 #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+…
洛谷P1305 新二叉树
题目 #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…