using System; using System.Collections; class poem { public static string[] poem1=new string[]{"尊敬的","可爱的","慈祥的","亲爱的","调皮的","活泼的","深沉的","可恶的","讨厌的","烦人的","高贵的","自恋的", "大胆的","心细的","懒惰的","爱美的","时尚的","前卫的","保守的","固执的","灵活的","轻巧的","迷人的","漂亮的","多情的","伤感的","善感的"}; public static string[] poem2=new string[]{"太阳","月亮","星星","牦牛","鳄鱼","毛驴","小草","梅花","苹果","香蕉","橘子","汉包","热狗","露水","晨雾","夕阳","紫烟","瀑布","岩石","飞机","隧道","天空","猎狗","大象","黑熊","柴狗","企鹅"}; public static string[] poem3=new string[]{"爱","恨","等","看","愣","瞪","笑","哭","打","骂","催","找","盼","吵","缠","追","赶","跑","跳","望","窥","瞧","瞟","扫","钓","瞻","视"}; public static void Main() { Print(); } static void Print() { Random r=new Random(); Console.WriteLine("input numbers"); int a=int.Parse(Console.ReadLine()); for(int i=0;i<a;i++) { bool b=true; while(b) { string str1=poem1[r.Next(poem1.Length)]; string str2=poem2[r.Next(poem2.Length)]; string str3=poem3[r.Next(poem3.Length)]; string str4=poem2[r.Next(poem2.Length)]; if(str2!=str4) { Console.WriteLine("{0},{1}",i+1,str1+str2+str3+str4); break; } else { continue; } } }
} }