本文共 1572 字,大约阅读时间需要 5 分钟。
1、
2、题目:
51 32 43 54 65 661 32 43 54 65 76 7
You are my elderYou are my brother
无
辽宁省赛2010
#include#include #include #include #include using namespace std;int f[3005];int main(){ int n,a,b; while(scanf("%d",&n)!=EOF) { memset(f,-1,sizeof(f)); for(int i=1;i<=n;i++) { scanf("%d%d",&a,&b); f[a]=b; } int p=1; int sum=0; while(f[p]!=-1) { sum++; p=f[p]; } p=2; int count=0; while(f[p]!=-1) { count++; p=f[p]; } if(count>sum) printf("You are my younger\n"); else if(count
转载地址:http://ogddi.baihongyu.com/