捞 捞
\def{\cGreen}{#52C41A} \def{\cOrange}{#F39C11}
\def{\cYellow}{#FADB14} \def{\cRed}{#E74C3C}
\def{\colorOfLine}{#A9A9A9} \def{\colorOfDivide}{#000000}
\def{\colorOfName}{#000000} \def{\colorOfBox}{#000000}
\def{\colorOfContent}{#000000}
\newcommand{\item}[2]{\color{\colorOfName}\textbf{#1:}\text{#2} & }
\newcommand{\add}[2]{
\fcolorbox{\colorOfBox}{#2}{\normalsize\vphantom{+}\kern{#1 mm}}
}
\newcommand{\main}[6]{
\boxed{
\color{white}\begin{cases}
&\color{\colorOfLine}\kern{4pt}\begin{vmatrix}\raisebox{90pt}{}\kern{48.56mm}\end{vmatrix}\kern{-5.5pt}\begin{vmatrix}\raisebox{90pt}{}\kern{48.56mm}\end{vmatrix} \\[-108pt]
&\color{\colorOfDivide}\scriptsize\kern{4 pt}\text{0}\kern{48.2 mm}\text{50}\kern{47 mm}\text{100} \\[3pt]
\item{基础信用}{#1} \add{#1}{\cGreen} \\[3pt]
\item{练习情况}{#2} \add{#2}{\cYellow} \\[3pt]
\item{社区贡献}{#3} \add{#3}{\cGreen} \\[3pt]
\item{比赛情况}{#4} \add{#4}{\cGreen} \\[3pt]
\item{获得成就}{#5} \add{#5}{\cYellow} \\[3pt]
\color{\colorOfName}\textbf{总咕值:\kern{10pt}#6}
\end{cases}
} \\
}
\main{100}{19}{41}{8}{0}{168}
\def{\cR}{FE4C61} \def{\cO}{F39C11} \def{\cY}{FFC116} \def{\cG}{52C41A} \def{\cB}{3498DB} \def{\cP}{9D3DCF} \def{\cD}{0E1D69} \def{\cE}{BFBFBF} \def{\s}{35pt} \def{\w}{\kern{5pt}}
\newcommand{\a}[1]{&\textcolor{A9A9A9}{\kern{-5pt}\underline{#1\kern{242pt}}\kern{8pt}}\\[\s]}
\newcommand{\b}[2]{\fcolorbox{black}{#2}{\raisebox{#1pt}{\kern{10pt}}}\raisebox{#1pt}{\scriptsize\kern{-17pt}\raisebox{4.5pt}{#1题}}}
\newcommand{\c}[0]{\kern{-10pt}\large\textbf{练习情况统计表}}
\newcommand{\t}[2]{\fcolorbox{black}{#2}{\color{white}\textbf{#1}}}
\newcommand{\main}[9]{
\boxed{\kern{8pt}\begin{gathered}\\[-6pt]\c\\[10pt]
\begin{aligned}\a{400}\a{350}\a{300}\a{250}\a{200}\a{150}\a{100}\a{\w50}\a{\w\w 0}\end{aligned} \\[-64pt] \\[-#1pt]
\begin{matrix}
& \b{#2}{\cE}& \b{#3}{\cR} & \b{#4}{\cO} & \b{#5}{\cY} & \b{#6}{\cG} & \b{#7}{\cB} & \b{#8}{\cP} & \b{#9}{\cD} & \\[5pt]
\kern{-6pt}\text{项目} & \t{灰}{\cE} & \t{红}{\cR} & \t{橙}{\cO} & \t{黄}{\cY}&\t{绿}{\cG}&\t{蓝}{\cB}&\t{紫}{\cP} & \t{黑}{\cD} & \kern{8pt} \\
\end{matrix}
\end{gathered}}}
\main{119}{13}{112}{79}{29}{6}{10}{7}{3}
C++ 复制 #include <bits/stdc++.h>
#define int long long
using namespace std ;
const int N = 25 ;
int fa[N], n;
int dep (int x ) {
int d = 0 ;
while (fa[x]) x = fa[x], d++ ;
return d;
}
signed main () {
ios ::sync_with_stdio (false ), cin.tie (0 ), cout.tie (0 );
cin >> n;
while (n-- ) {
int a, b;
cin >> a >> b;
fa[a] = b;
}
int d1 = dep (1 ), d2 = dep (2 );
if (d1 < d2)
cout << "You are my younger \n " ;
else if (d1 > d2)
cout << "You are my elder \n " ;
else
cout << "You are my brother \n " ;
return 0 ;
}