直接上代码
#include<bits/stdc++.h>
#include<windows.h>
#include<wincrypt.h>
#include<cstdlib>
#define z1 cout<<"零雨慰斯人,斋心荐绿苹。《城隍庙赛雨二首》"<<endl;
#define z2 cout<<"零陵贪而乳尽,合浦清而蚌回。《送明甫赴铜铅场六言七首》"<<endl;
#define z3 cout<<"零丁未保麒麟雏,大家一节誓不渝。《孔节妇》"<<endl;
#define z4 cout<<"零泪向谁道,鸡鸣徒叹息。《夜夜曲》"<<endl;
#define z5 cout<<"零桂佳山水,荥阳旧自同。《道州途中即事》"<<endl;
#define z6 cout<<"零雨润坟泽,落雪洒林丘。《西陵遇风献康乐》"<<endl;
#define z7 cout<<"零露弥天坠,蕙叶凭林衰。《拟东城一何高诗》"<<endl;
#define z8 cout<<"零雨已回公旦驾,挽须聊听野王筝。《荆门别张天觉》"<<endl;
#define z9 cout<<"零雨其蒙愁不散,闲花寂寂斑阶苔。《走笔追王内丘》"<<endl;
#define z10 cout<<"零零夜雨渍愁根,触物伤离好断魂。《山中有所思》"<<endl;
#define z11 cout<<"零露积衰草,寒螀鸣古田。《与朝阳山人张朝夜集湖亭,赋得各言其志》"<<endl;
#define z12 cout<<"零露泫月蕊,温风散晴葩。《三月二十日多叶杏盛开》"<<endl;
#define z13 cout<<"零陵并起扶颠手,九庙无归计莫疏。《太长了这里略掉》"<<endl;
#define z14 cout<<"零陵太守泪盈巾,此日长安方欲春。《送从叔牧永州》"<<endl;
#define z15 cout<<"零陵郡北湘水东,浯溪形胜满湘中。《欸乃曲五首》"<<endl;
#define z16 cout<<"零陵城郭夹湘岸,岩洞幽奇带郡城。《朝阳岩下歌》"<<endl;
#define z17 cout<<"零叶翻红万树霜,玉莲开蕊暖泉香。《华清宫》"<<endl;
#define z18 cout<<"零陵过赠石香溪,洞口人来饮醇酒。《送中兄典邵州》"<<endl;
#define z19 cout<<"零陵沙门继其后,新书大字大如斗。《赠零陵僧》"<<endl;
#define z20 cout<<"零露下长洲,云翻海倒流。《唐多令·零露下长洲》"<<endl;
#define z21 cout<<"零露垂鲜泽,朗月耀其辉。《园葵诗》"<<endl;
#define z22 cout<<"零露被百草,秋风吹桃李。《效阮公诗》"<<endl;
#define z23 cout<<"零雨润坟泽,落雪洒林丘。《西陵遇风献康乐诗四首之一》"<<endl;
#define z24 cout<<"零泪无人道,相思空何益。《咏雪》"<<endl;
#define z25 cout<<"零丁不忍摘,攀玩聊自慰。《有感三首之一》"<<endl;
#define z26 cout<<"零雨悲王粲,清尊别孔融。《西使兼送孟学士南游》"<<endl;
#define z27 cout<<"零雨征轩骛,秋风别骥嘶。《饯许州宋司马赴任》"<<endl;
#define z28 cout<<"零桂虽逢竹,湘川少见人。《送樊兵曹潭州谒韦大夫》"<<endl;
#define z29 cout<<"零陵旧是燕,昆池本学鱼。《咏石诗其一》"<<endl;
#define a1a cout<<"一片冰心在玉壶 —— 王昌龄 "<<endl;
#define a2a cout<<"一人独钓一江秋 —— 王士祯 "<<endl;
#define a3a cout<<"一川烟草,满城风絮,梅子黄时雨 —— 贺铸 "<<endl;
#define a4a cout<<"一日不见,如三秋兮 —— 《诗经》 "<<endl;
#define a5a cout<<"一夫当关,万夫莫开 —— 李白 "<<endl;
#define a6a cout<<"一水护田将绿绕,两山排闼送青来 —— 王安石 "<<endl;
#define a7a cout<<"一叫一回肠一断,三春三月忆三巴 —— 李白 "<<endl;
#define a8a cout<<"一丘一壑也风流 —— 辛弃疾 "<<endl;
#define a9a cout<<"一失足成千古恨,再回头已百年身 —— 魏子安 "<<endl;
#define a10a cout<<"一片芒心千万绪,人间没个安排处 —— 李煜 "<<endl;
#define a11a cout<<"一片花飞减却春,风飘万点正愁人 —— 杜甫 "<<endl;
#define a12a cout<<"一生依样画葫芦 —— 陶彀 "<<endl;
#define a13a cout<<"一代红妆照汗青 —— 吴伟业 "<<endl;
#define a14a cout<<"一去紫台连朔漠,独留青冢向黄昏 —— 杜甫 "<<endl;
#define a15a cout<<"一年又过一年春,百岁曾无百岁人 —— 宋之问 "<<endl;
#define a16a cout<<"一自西施采莲后,越中生女尽如花 —— 朱彝尊 "<<endl;
#define a17a cout<<"一年好景君须记,最是橙黄橘绿时 —— 苏轼 "<<endl;
#define a18a cout<<"一年明月今宵多,人生由命非由他,有酒不饮奈若何 —— 韩愈 "<<endl;
#define a19a cout<<"一年春事都来几?早过了三之二 —— 欧阳修 "<<endl;
#define a20a cout<<"一行书信千行泪,寒到君边衣到无 —— 陈玉兰 "<<endl;
#define a21a cout<<"一年将尽夜,万里未归人 —— 戴叔伦 "<<endl;
#define a22a cout<<"一曲离歌两行泪,不知何地再逢君 —— 韦庄 "<<endl;
#define a23a cout<<"一折青山一扇屏,一湾碧水一条琴 —— 刘嗣绾 "<<endl;
#define a24a cout<<"一身能擘两雕弧,虎骑行千里只似无 —— 王维 "<<endl;
#define a25a cout<<"一身转战三千里,一剑曾当百万师 —— 王维 "<<endl;
#define a26a cout<<"一事无成两鬓丝 —— 佚名 "<<endl;
#define a27a cout<<"一卷离骚一卷经,十年心事十年灯,芭蕉叶上听秋声 —— 吴藻 "<<endl;
#define a28a cout<<"一枝秋艳露凝香,云雨巫山在断肠 —— 李白 "<<endl;
#define a29a cout<<"一波才动万波随 —— 船子和尚 "<<endl;
#define a30a cout<<"一面东风百万师,当年此处定三分 —— 袁枚 "<<endl;
#define a31a cout<<"一封朝奏九重天,夕贬潮阳路八千 —— 韩愈 "<<endl;
#define a32a cout<<"一看肠一断,好去莫回头 —— 白居易 "<<endl;
#define a33a cout<<"一个西湖一才子 —— 赵翼 "<<endl;
#define a34a cout<<"一派青山景色幽,前人田地后人收 —— 范仲庵 "<<endl;
#define a35a cout<<"一鸟不啼山更幽 —— 王安石 "<<endl;
#define a36a cout<<"一将功成万骨枯 —— 曹松 "<<endl;
#define a37a cout<<"一为迁客去长沙;西望长安不见家 —— 李白 "<<endl;
#define a38a cout<<"一登一涉一回顾,我脚高时他更高 —— 杨万里 "<<endl;
#define a39a cout<<"一间茅屋何所值?父母之乡去不得 —— 王建 "<<endl;
#define a40a cout<<"一丝柳一寸柔情 —— 吴文英 "<<endl;
#define a41a cout<<"一朝春尽红颜老,花落人亡两不知 —— 曹雪芹 "<<endl;
#define a42a cout<<"一诗千改始心安,头未梳成不许看 —— 袁枚 "<<endl;
#define a43a cout<<"一叶叶一声声,空阶滴到明 —— 温庭筠 "<<endl;
#define a44a cout<<"一语天然万古新,豪华落尽见真淳 —— 元遗山 "<<endl;
#define a45a cout<<"一壶酒,一竿身,世上如依有几人 —— 李煜 "<<endl;
#define a46a cout<<"一语为重百金经 —— 王安石 "<<endl;
#define a47a cout<<"一壶浊酒喜相逢,古今多少事?都付笑谈中 —— 罗贯中 "<<endl;
#define a48a cout<<"一树春风千万枝,嫩于金色软于丝 —— 白居易 "<<endl;
#define a49a cout<<"一萧一剑平生意,负尽狂名十五年 —— 龚自珍 "<<endl;
#define a50a cout<<"一声何满子,双泪落君前 —— 张祜 "<<endl;
#define b1 cout<<"二贤寂寂未有继,蜀人惟恐公来迟。 ——王炎《送黄尚书帅蜀》"<<endl;
#define b2 cout<<"二砚温如玉琢成,信知天地有精英。 ——刘克庄《获砚》"<<endl;
#define b3 cout<<"二老毫端一滴曹,唤醒默语没忉忉。 ——郑清之《太长了这里略掉》"<<endl;
#define b4 cout<<"二林重结遗民社,五柳闲寻靖节居。 ——杨亿《黄旦宰江州德化县》"<<endl;
#define b5 cout<<"二月三月山初暖,最爱低檐数枝短。 ——皎然《洞庭山维谅上人院阶前孤生橘树歌》"<<endl;
#define b6 cout<<"二公妙龄挟才艺,往往见知今宰臣。 ——方回《题郎川纪胜图》"<<endl;
#define b7 cout<<"二公德业吾岂敢,浅陋最识诗文工。 ——陈杰《太长了这里略掉》"<<endl;
#define b8 cout<<"二纪区区困宦游,相逢莫讶鬓先秋。 ——范纯仁《和元子发学士见寄》"<<endl;
#define b9 cout<<"二陆比方夸俊少,两乔相并修容止。 ——刘学箕《满江红》"<<endl;
#define b10 cout<<"二老揽辔方并驰,一气相和如埙箎。 ——吴芾《三老图既成久欲作诗未果因次任漕韵》"<<endl;
#define b11 cout<<"二十余年枯淡过,病来筯下剧甘肥。 ——黄庭坚《谢荣绪割麞见贻二首 其二》"<<endl;
#define b12 cout<<"二月制成输御府,经时犹未到人家。 ——苏颂《太长了这里略掉》"<<endl;
#define b13 cout<<"二帅宣威既电击,羣校贾勇争奋扬。 ——邢凯《辛卯上提刑平寇歌》"<<endl;
#define b14 cout<<"二方相继厉名节,不顾羔雁真善谋。 ——周麟之《和陈大监》"<<endl;
#define b15 cout<<"二午九斋余日在,请君相伴醉如泥。 ——吴仁璧《读度人经寄郑仁表》"<<endl;
#define b16 cout<<"二十年前已二毛,即今何恨鬓萧骚。 ——陆游《初秋书怀》"<<endl;
#define b17 cout<<"二人分得淮南道,人自日边来既早。 ——田锡《送韩援赴阙》"<<endl;
#define b18 cout<<"二十四年一笑适,可待车笠论初心。 ——陈造《再次韵呈林子长郎中二首 其一》"<<endl;
#define b19 cout<<"二月看看已过半,春雨尚尔不放晴。 ——佚名《二月看看已过半》"<<endl;
#define b20 cout<<"二十余年备掖庭,红颜消渴每伤情。 ——佚名《二十余年备掖庭》"<<endl;
#define c1 cout<<"三年耕有九年储,仓谷满盈。 ——曹操《对酒》"<<endl;
#define c2 cout<<"三秋岸雪花初白,一夜林霜叶尽红。 ——温庭筠《盘石寺留别成公》"<<endl;
#define c3 cout<<"三接旧承前席遇,一灵今用戒香熏。 ——韩偓《赠僧》"<<endl;
#define c4 cout<<"三星花入夜,四序玉调晨。 ——李峤《烛》"<<endl;
#define c5 cout<<"三春车马客,一代繁华地。 ——刘禹锡《曲江春望》"<<endl;
#define c6 cout<<"三秋不见每惓惓,握手山林复怅然。 ——王安石《诗奉送觉之奉使东川》"<<endl;
#define c7 cout<<"三月正当三十日,风光别我苦吟身。 ——贾岛《三月晦日赠刘评事》"<<endl;
#define c8 cout<<"三月灞陵春已老,故人相逢耐醉倒。 ——岑参《喜韩樽相过》"<<endl;
#define c9 cout<<"三千佳丽已罗列,争先鸾鉴匀娥眉。 ——米芾《溪莲行》"<<endl;
#define c10 cout<<"三魂归地府,七魄丧冥幽。 ——关汉卿《一枝花·不伏老》"<<endl;
#define c11 cout<<"三边形势全凭蜀,四路封疆半是山。 ——乐雷发《送丁少卿自桂帅移镇西蜀》"<<endl;
#define c12 cout<<"三更梦断敲荷雨,细听来、疏点还歇。 ——蒋捷《秋夜雨·髹车转急风如噎》"<<endl;
#define c13 cout<<"三公与刺史,秩等二千石。 ——王之道《和张咏老》"<<endl;
#define c14 cout<<"三声欲断疑肠断,饶是少年今白头。 ——杜牧《猿》"<<endl;
#define c15 cout<<"三泺凉波鱼蕝动,五茸春草雉媒娇。 ——陆龟蒙《奉和袭美吴中书事寄汉南裴尚书》"<<endl;
#define c16 cout<<"三月既晦,维暮之春。 ——周紫芝《怀旧一首》"<<endl;
#define c17 cout<<"三山老子真堪笑,见事迟来四十年。 ——陆游《鹧鸪天·插脚红尘已是颠》"<<endl;
#define c18 cout<<"三条九陌丽城隈,万户千门平旦开。 ——骆宾王《帝京篇》"<<endl;
#define c19 cout<<"三月山方暖,林花互照明。 ——周敦颐《大林寺》"<<endl;
#define c20 cout<<"三千世界内,何处是无生。 ——姚合《送僧游边》"<<endl;
#define d1 cout<<"四十年来若断桥,问津无计冷潇潇。——李之仪《答成都侍其纯父用其韵》"<<endl;
#define d2 cout<<"四十余年随世缘,眼昏头白更茫然。——沈辽《天竺白云堂》"<<endl;
#define d3 cout<<"四野杳无车马喧,竹阴篱落半开门。——于石《次韵吴子益》"<<endl;
#define d4 cout<<"四十九年前及第,同年唯有老夫存。——崔安潜《报何泽》"<<endl;
#define d5 cout<<"四灵百端皆符身,九夷八蛮咸来宾。——陈元光《圣作物覩》"<<endl;
#define d6 cout<<"四面万峰非不峻,如何只是一峰青。——杨万里《过景星山山顶一石孤立又名突星山》"<<endl;
#define d7 cout<<"四十二年居陕右,老年生计似初年。——张载《题北村六首 其六》"<<endl;
#define d8 cout<<"四海无庐置此翁,故营松竹尽囊空。——程俱《葺蜗庐吴下用叶翰林见寄诗韵作》"<<endl;
#define d9 cout<<"四海倾心比葵藿,黄金已报筑燕台。——岳珂《宫词一百首 其九四》"<<endl;
#define d10 cout<<"四其行蹄翼不假,上既载角齿乃亏。——王令《原蝗》"<<endl;
#define d11 cout<<"四邻束修来相看,不将入家将入官。——杨万里《太长了这里略掉》"<<endl;
#define d12 cout<<"四十余年心莫逆,故人如我与君稀。——王安石《送耿天骘至渡口》"<<endl;
#define d13 cout<<"四时七政有未平,愿述阴阳修律历。——杨杰《辟雍砚上胡先生》"<<endl;
#define d14 cout<<"四壁蛩催幽梦觉,满囊萤助读书油。——姚勉《秋夜》"<<endl;
#define d15 cout<<"四时惨舒不可调,冬夏寒暑易鬰陶。——欧阳修《送子野》"<<endl;
#define d16 cout<<"四十惊霜入鬓新,道光休叹守官贫。——赵拚《次韵孙直言书怀》"<<endl;
#define d17 cout<<"四时泉石应无夏,满谷云霞别是乡。——石介《留题敏夫隠居》"<<endl;
#define d18 cout<<"四壁应闻长叹息,何人知我此时心。——舒岳祥《遣兴三绝 其三》"<<endl;
#define d19 cout<<"四海瞻依一伟人,丘封嶪嶪木森森。——徐暄《太长了这里略掉》"<<endl;
#define d20 cout<<"四郡甘棠清到底,一枝丹桂庆流芳。——高之美《句》"<<endl;
#define e1 cout<<"五月天山雪,无花只有寒。——李白《塞下曲》"<<endl;
#define e2 cout<<"五月与狼相忆否,小楫轻舟,梦入芙蓉浦。——周邦彦《苏幕遮》"<<endl;
#define e3 cout<<"五岳归来不看山,黄山归来不看岳。——徐霞客《漫游黄山仙境》"<<endl;
#define e4 cout<<"五等列侯无故旧,一枝仙桂有风霜。——罗隐《长安秋夜》"<<endl;
#define e5 cout<<"五岳寻仙不辞远,一生好入名山游。——李白《庐山谣寄卢侍御虚舟》"<<endl;
#define e6 cout<<"五更钟漏欲相催,四气推迁往复回。——孟浩然《除夜有怀》"<<endl;
#define e7 cout<<"五岳滩头景象新,仁人方达杳冥身。——吕岩《七言》"<<endl;
#define e8 cout<<"五月鲥鱼已至燕,荔枝卢桔未应先。——何景明《鲥鱼》"<<endl;
#define e9 cout<<"五色毛衣比凤雏,深花丛里只如无。——可朋《桐花鸟》"<<endl;
#define e10 cout<<"五更惆怅回孤枕,犹自残灯照落花。——司空图《华下》"<<endl;
#define e11 cout<<"五花马,千金裘,呼儿将出换美酒,与尔同销万古愁。——李白《将进酒·君不见》"<<endl;
#define e12 cout<<"五更归梦二百里,一夜飞度镜湖月。——李白《梦游天姥吟留别》"<<endl;
#define e13 cout<<"五陵年少金市东,银鞍白马度春风。——李白《少年行二首》"<<endl;
#define e14 cout<<"五更鼓角声悲壮,三峡星河影动摇。——杜甫《阁夜》"<<endl;
#define e15 cout<<"五更疏欲断,一树碧无情。——李商隐《北齐二首》"<<endl;
#define e16 cout<<"五十弦翻塞外声,沙场秋点兵。——辛弃疾《破阵子·为陈同甫赋壮词以寄之》"<<endl;
#define e17 cout<<"五月人倍忙,夜来南风起。——白居易《观刈麦》"<<endl;
#define e18 cout<<"五载客蜀郡,一年居梓州。——杜甫《去蜀》"<<endl;
#define e19 cout<<"五十头白翁,南北逃世难。——杜甫《逃难》"<<endl;
#define e20 cout<<"五千宗物母,七字秘神童。——徐铉《步虚词五首其三》"<<endl;
#define e21 cout<<"五斗嫌腰折,朋山刺眼新。——佚名诗句"<<endl;
#define f1 cout<<"六经芜翳力穮蔉,百王理乱深鉏耰。 ——释居简《一犂春雨图》"<<endl;
#define f2 cout<<"六月灵芝湖上寺,风凉相与洗车尘。 ——韩淲《朱敬之监簿求泉南添差倅去泊灵芝》"<<endl;
#define f3 cout<<"六义中间有至乐,不须苦作楚人骚。 ——姜特立《闲吟》"<<endl;
#define f4 cout<<"六只骰子满盆红,马载馿驼一掷空。 ——释清远《太长了这里略掉》"<<endl;
#define f5 cout<<"六十门生焚蕙炷,再拜祝公如卫武。 ——喻良能《王枢使生辰》"<<endl;
#define f6 cout<<"六月卧冰铺瑞雪,大笑三声作麽生。 ——释印肃《颂古九十八首 其三八》"<<endl;
#define f7 cout<<"六朝遗迹此空存,城压沧波到海门。 ——王珪《游赏心亭》"<<endl;
#define f8 cout<<"六窗深闭大槐宫,一枕清风瞬息中。 ——释智朋《梦宅》"<<endl;
#define f9 cout<<"六花一夜降中天,飞绕吾庐顿满前。 ——吴芾《和津喜雪二首 其一》"<<endl;
#define f10 cout<<"六幕西回斗转车,鲜云点缀玉钩斜。 ——杨亿《戊申年七夕五绝 其一》"<<endl;
#define f11 cout<<"六十余年望琱辇,赭袍曾是映宫槐。 ——黄庭坚《和谢公定河朔漫成八首 其七》"<<endl;
#define f12 cout<<"六十四卦七十钻,毕竟不能知所以。 ——白居易《偶然二首 二》"<<endl;
#define f13 cout<<"六朝文物草连空,天淡云闲今古同。 ——杜牧《题宣州开元寺水阁阁下宛溪夹溪居人》"<<endl;
#define f14 cout<<"六亲不和,有孝慈;国家昏乱,有忠臣。 ——老子《道德经》"<<endl;
#define f15 cout<<"六脉流星动,心潮澎湃荡。"<<endl;
#define f16 cout<<"六方揽天地,世界尽收藏。"<<endl;
#define f17 cout<<"六出奇迹展,辉映人生光。"<<endl;
#define g1 cout<<"七秩高年堂上父,一生足事膝间儿。 ——何梦桂《贺中斋黄大卿得子》"<<endl;
#define g2 cout<<"七八年中相契密,三千里外来将息。 ——葛长庚《满江红》"<<endl;
#define g3 cout<<"七日七夜复不止,钱王旧城市无米。 ——方回《苦雨行》"<<endl;
#define g4 cout<<"七十衰翁谁信及,话言端欲广书绅。 ——张元干《上平江陈侍郎十绝 其一》"<<endl;
#define g5 cout<<"七岁澜翻数万言,饥鹰引子望腾骞。 ——韩驹《太长了这里略掉》"<<endl;
#define g6 cout<<"七德龙韬开玉帐,千里鼍鼓叠金钲。 ——骆宾王《杂曲歌辞 从军中行路难二首二》"<<endl;
#define g7 cout<<"七人庙下立徘徊,相顾闲心几欲摧。 ——魏野《和薛察院同龙门知县刘大着洎数公禹庙留题》"<<endl;
#define g8 cout<<"七层灯火重湖影,千尺阑干两市声。 ——叶茵《松江》"<<endl;
#define g9 cout<<"七觉菩提性无别,七识流浪会真宗。 ——傅翕《行路难二十篇(幷序) 第九章明无断烦恼》"<<endl;
#define g10 cout<<"七字论怀如对面,片帆先我渡垂虹。 ——张扩《太长了这里略掉》"<<endl;
#define g11 cout<<"七十达者四贤圣,就中大师深入神。 ——江满昌《大唐大慈恩寺大师画赞》"<<endl;
#define g12 cout<<"七十三回生一阳,子年未半升我堂。 ——方回《次韵吴僧魁一山十绝 其四》"<<endl;
#define g13 cout<<"七夕今朝看碧霄,牵牛织女渡河桥。 ——林杰《七夕》"<<endl;
#define g14 cout<<"七夕今宵看碧霄,牵牛织女渡河桥。 ——林杰《乞巧》"<<endl;
#define g15 cout<<"七十五声更漏,一千余里乡心。 ——释文珦《梦觉》"<<endl;
#define g16 cout<<"七十三年客,相从尚几年。 ——苏辙《除夜二首》"<<endl;
#define g17 cout<<"七十而致仕,礼法有明文。 ——白居易《不致仕》"<<endl;
#define g18 cout<<"七十古来稀。 ——佚名"<<endl;
#define g19 cout<<"七八个星天外,两三点雨山前。 ——辛弃疾《西江月》"<<endl;
#define g20 cout<<"七月欲尽八月初,天久不雨暑未徂。 ——楼钥《奉口遇雨》"<<endl;
#define g21 cout<<"七月辞玉署,再入佐黄扉。 ——宋祁《玉堂感旧》"<<endl;
#define g22 cout<<"七年辞玉署,再入佐黄扉。 ——宋祁《玉堂感旧》"<<endl;
#define g23 cout<<"七年客里度初生,诗骨依然只鹤形。 ——杨公远《生朝二首》"<<endl;
#define g24 cout<<"七聚名藩亦甚都,龙津剑气正扶舆。 ——马廷鸾《送汤东涧出守南剑州》"<<endl;
#define g25 cout<<"七子论诗谁似公?曹刘须在指挥中。 ——杜牧《酬张祜处士见寄长句四韵》"<<endl;
#define g26 cout<<"七手八肢,三头两面。 ——释德光《偈》"<<endl;
#define g27 cout<<"七佛前前旷路赊,碧琉璃界锁蟾华。 ——释子淳《偈二十二首 其一六》"<<endl;
#define g28 cout<<"七宝仙台亡旧迹,四彩天花绝雨声。 ——义净《太长了这里略掉》"<<endl;
#define g29 cout<<"七千里外二毛人,十八滩头一叶身。 ——苏轼《八月七日初入赣过惶恐滩》"<<endl;
#define g30 cout<<"七十三,三十七。恁时节思量,王吉王吉。 ——王哲《红窗》"<<endl;
#define h1 cout<<"八年黄伯颍川政,十载武侯泸水功。"<<endl;
#define h2 cout<<"八十樵翁无頼查,芭鞋踏破乱山霞。"<<endl;
#define h3 cout<<"八曲砚峰倚碧虚,泉流瀑布世间无。"<<endl;
#define h4 cout<<"八音相应谐韶乐,一声未了落梁尘。"<<endl;
#define h5 cout<<"八卦三元全藉汞,五行四象岂离铅。"<<endl;
#define h6 cout<<"八举亲祠俱响答,吾皇诚意感穹苍。"<<endl;
#define h7 cout<<"八月长江万里晴,千帆一道带风轻。"<<endl;
#define h8 cout<<"八月秋高战马肥,观兵郊外振天威。"<<endl;
#define h9 cout<<"八十诗僧岁莫闲,又随白浪上包山。"<<endl;
#define h10 cout<<"八月九日正长夜,千声万声无了时。"<<endl;
#define h11 cout<<"八月十五翫蟾辉,正是金精壮盛时。"<<endl;
#define h12 cout<<"八十老僧偏念古,向余慷慨说孙锺。"<<endl;
#define h13 cout<<"八月中秋滋露华,千岩尺璧生光彩。"<<endl;
#define h14 cout<<"八月凉风动高阁,千金丽人捲绡幕。"<<endl;
#define h15 cout<<"八月凉风天气晶,万里无云河汉明。"<<endl;
#define h16 cout<<"八月湖水平,涵虚混太清。"<<endl;
#define h17 cout<<"八月观潮罢,三江越海浔。"<<endl;
#define h18 cout<<"八月繁云连九月,两回三五晦漫漫。"<<endl;
#define h19 cout<<"八月长江去浪平,片帆一道带风轻。"<<endl;
#define h20 cout<<"八月白露降,湖中水方老。"<<endl;
#define h21 cout<<"八月白露浓,芙蓉抱香死。"<<endl;
#define h22 cout<<"八月秋高风怒号,卷我屋上三重茅。"<<endl;
#define h23 cout<<"八月无霜塞草青,将军骑马出空城。"<<endl;
#define h23 cout<<"八月中秋月正圆,送君吟上木兰船。"<<endl;
#define h24 cout<<"八月风波似鼓鼙,可堪波上各东西。"<<endl;
#define h25 cout<<"八月木阴薄,十叶三堕枝。"<<endl;
#define h26 cout<<"八月悲风九月霜,蓼花红澹苇条黄。"<<endl;
#define h27 cout<<"八月收民算,三千异典章。"<<endl;
#define h28 cout<<"八月金舆度玉关,芙蓉零落后庭闲。"<<endl;
#define h29 cout<<"八月小春天,如人强少年。"<<endl;
#define i1 cout<<"九玄眷命,三圣基隆。 ——《唐大飨拜洛乐章昭和》"<<endl;
#define i2 cout<<"九春开上节,千门敞夜扉。 ——《早春夜宴》"<<endl;
#define i3 cout<<"九重开扇鹄,四牖炳灯鱼。 ——《句》"<<endl;
#define i4 cout<<"九疑山水远,无路继湘妃。 ——《游丈人观谒先帝御容》"<<endl;
#define i5 cout<<"九迁归上略,三已契愚衷。 ——《酬于侍郎湖南见寄十四韵》"<<endl;
#define i6 cout<<"九译蕃君使,千年圣主臣。 ——《送日本国聘贺使晁巨卿东归》"<<endl;
#define i7 cout<<"九霄偏眷顾,三事早提携。 ——《奉和常阁老晚秋集贤院即事,寄赠徐、薛二侍》"<<endl;
#define i8 cout<<"九卿朝已入,三子暮同来。 ——《送光禄姚卿还都》"<<endl;
#define i9 cout<<"九十春光似转蓬,半晴天气雾溟蒙。 ——《暮春》"<<endl;
#define i10 cout<<"九天执法大玄卿,稽首焚香礼玉京。 ——《来鹤诗赠周玄初》"<<endl;
#define i11 cout<<"九十风光强半过,栖迟高枕欲如何。 ——《敖山人病诗以问之》"<<endl;
#define i12 cout<<"九江江水九流盘,彩躭朱旗霄汉间。 ——《浔阳歌五首》"<<endl;
#define i13 cout<<"九月未授衣,十月边霜凛。 ——《边词五首》"<<endl;
#define i14 cout<<"九夷簉瑶席,五狄列琼筵。 ——《春日玄武门宴群臣》"<<endl;
#define i15 cout<<"九载违离得远书,几更岁历斗旋枢。 ——《答复见心长老见寄(二首)》"<<endl;
#define i16 cout<<"九月犹絺衣,故乡胡不归。 ——《旅寓》"<<endl;
#define i17 cout<<"九江前面是庐峰,倾想平生未得逢。 ——《送庐山长老》"<<endl;
#define i18 cout<<"九嶷嵯峨楚云碧,鹧鸪啼雨湘江夕。 ——《夜雨》"<<endl;
#define i19 cout<<"九疑空翠隔烟波,北渚云横有雁过。 ——《为陆以平题图》"<<endl;
#define i20 cout<<"九龙池上有高台,池下芙蓉台上开。 ——《怀归》"<<endl;
using namespace std;
class WinRandom
{
HCRYPTPROV handle;
public:
WinRandom()
{
handle=NULL;
CryptAcquireContext((HCRYPTPROV*)&handle,NULL,NULL,PROV_RSA_FULL,0);
}
~WinRandom()
{
if(handle!=NULL) CryptReleaseContext(handle,0);
}
bool randBuf(void *dest,int len)
{
if (handle==NULL) return false;
return CryptGenRandom(handle,len,(BYTE*)dest);
}
#define _(func,typ)\
typ func()\
{\
typ ret=0;\
assert(randBuf((void*)&ret,sizeof(ret)));\
return ret;\
}
_(randInt,int)
_(randLong,long long)
_(randUnsigned,unsigned)
_(randUnsignedLong,unsigned long long)
_(randShort,short)
_(randUnsignedShort,unsigned short)
_(randChar,char)
_(randUnsignedChar,unsigned char)
_(randSignedChar,signed char)
};
int main()
{
WinRandom R;
system("title yaosicheng");
int x,s,g,y,a[100000],z=1,b;
while(1)
{
x=abs(R.randInt())%50+1;
b=0;
for(int j=z-10;j<=z;j++)
{
if(x==a[j])
{
b=1;
}
}
if(b==1)
{
x=abs(R.randInt())%50+1;
}
b=0;
for(int j=z-10;j<=z;j++)
{
if(x==a[j])
{
b=1;
}
}
if(b==1)
{
x=abs(R.randInt())%50+1;
}
b=0;
a[z]=x;
z++;
s=x/10;
/*
HWND hwnd = NULL;
int x,y,width,height;
int i;
RECT rect;
hwnd = GetForegroundWindow();//获取当前窗口
GetClientRect(hwnd,&rect);//获取当前窗口区域
x = rect.left;
y = rect.top;
width = rect.right - x;
height = rect.bottom - y;
if(hwnd != NULL)
{
for(i=0;i<10;i++)//抖动50次
{
MoveWindow(hwnd,x+500,y+600,width,height,true);Sleep(20);
MoveWindow(hwnd,x+500,y+500,width,height,true);Sleep(20);
MoveWindow(hwnd,x+600,y+500,width,height,true);Sleep(20);
MoveWindow(hwnd,x+600,y+600,width,height,true);Sleep(20);
}
}
*/
Sleep(500);
if(s==1)
{
y=abs(R.randInt())%50+1;
if(y==1) a1a;
if(y==2) a2a;
if(y==3) a3a;
if(y==4) a4a;
if(y==5) a5a;
if(y==6) a6a;
if(y==7) a7a;
if(y==8) a8a;
if(y==9) a9a;
if(y==10) a10a;
if(y==11) a11a;
if(y==12) a12a;
if(y==13) a13a;
if(y==14) a14a;
if(y==15) a15a;
if(y==16) a16a;
if(y==17) a17a;
if(y==18) a18a;
if(y==19) a19a;
if(y==20) a20a;
if(y==21) a21a;
if(y==22) a22a;
if(y==23) a23a;
if(y==24) a24a;
if(y==25) a25a;
if(y==26) a26a;
if(y==27) a27a;
if(y==28) a28a;
if(y==29) a29a;
if(y==30) a30a;
if(y==31) a31a;
if(y==32) a32a;
if(y==33) a33a;
if(y==34) a34a;
if(y==35) a35a;
if(y==36) a36a;
if(y==37) a37a;
if(y==38) a38a;
if(y==39) a39a;
if(y==40) a40a;
if(y==41) a41a;
if(y==42) a42a;
if(y==43) a43a;
if(y==44) a44a;
if(y==45) a45a;
if(y==46) a46a;
if(y==47) a47a;
if(y==48) a48a;
if(y==49) a49a;
if(y==50) a50a;
}
if(s==2)
{
y=abs(R.randInt())%20+1;
if(y==1) b1;
if(y==2) b2;
if(y==3) b3;
if(y==4) b4;
if(y==5) b5;
if(y==6) b6;
if(y==7) b7;
if(y==8) b8;
if(y==9) b9;
if(y==10) b10;
if(y==11) b11;
if(y==12) b12;
if(y==13) b13;
if(y==14) b14;
if(y==15) b15;
if(y==16) b16;
if(y==17) b17;
if(y==18) b18;
if(y==19) b19;
if(y==20) b20;
}
if(s==3)
{
y=abs(R.randInt())%20+1;
if(y==1) c1;
if(y==2) c2;
if(y==3) c3;
if(y==4) c4;
if(y==5) c5;
if(y==6) c6;
if(y==7) c7;
if(y==8) c8;
if(y==9) c9;
if(y==10) c10;
if(y==11) c11;
if(y==12) c12;
if(y==13) c13;
if(y==14) c14;
if(y==15) c15;
if(y==16) c16;
if(y==17) c17;
if(y==18) c18;
if(y==19) c19;
if(y==20) c20;
}
if(s==4)
{
y=abs(R.randInt())%20+1;
if(y==1) d1;
if(y==2) d2;
if(y==3) d3;
if(y==4) d4;
if(y==5) d5;
if(y==6) d6;
if(y==7) d7;
if(y==8) d8;
if(y==9) d9;
if(y==10) d10;
if(y==11) d11;
if(y==12) d12;
if(y==13) d13;
if(y==14) d14;
if(y==15) d15;
if(y==16) d16;
if(y==17) d17;
if(y==18) d18;
if(y==19) d19;
if(y==20) d20;
}
if(s==5)
{
y=abs(R.randInt())%21+1;
if(y==1) e1;
if(y==2) e2;
if(y==3) e3;
if(y==4) e4;
if(y==5) e5;
if(y==6) e6;
if(y==7) e7;
if(y==8) e8;
if(y==9) e9;
if(y==10) e10;
if(y==11) e11;
if(y==12) e12;
if(y==13) e13;
if(y==14) e14;
if(y==15) e15;
if(y==16) e16;
if(y==17) e17;
if(y==18) e18;
if(y==19) e19;
if(y==20) e20;
}
if(s==0)
{
y=abs(R.randInt())%29+1;
if(y==1) z1;
if(y==2) z2;
if(y==3) z3;
if(y==4) z4;
if(y==5) z5;
if(y==6) z6;
if(y==7) z7;
if(y==8) z8;
if(y==9) z9;
if(y==10) z10;
if(y==11) z11;
if(y==12) z12;
if(y==13) z13;
if(y==14) z14;
if(y==15) z15;
if(y==16) z16;
if(y==17) z17;
if(y==18) z18;
if(y==19) z19;
if(y==20) z20;
if(y==21) z21;
if(y==22) z22;
if(y==23) z23;
if(y==24) z24;
if(y==25) z25;
if(y==26) z26;
if(y==27) z27;
if(y==28) z28;
if(y==29) z29;
}
Sleep(500);
g=x%10;
if(g==1)
{
y=abs(R.randInt())%50+1;
if(y==1) a1a;
if(y==2) a2a;
if(y==3) a3a;
if(y==4) a4a;
if(y==5) a5a;
if(y==6) a6a;
if(y==7) a7a;
if(y==8) a8a;
if(y==9) a9a;
if(y==10) a10a;
if(y==11) a11a;
if(y==12) a12a;
if(y==13) a13a;
if(y==14) a14a;
if(y==15) a15a;
if(y==16) a16a;
if(y==17) a17a;
if(y==18) a18a;
if(y==19) a19a;
if(y==20) a20a;
if(y==21) a21a;
if(y==22) a22a;
if(y==23) a23a;
if(y==24) a24a;
if(y==25) a25a;
if(y==26) a26a;
if(y==27) a27a;
if(y==28) a28a;
if(y==29) a29a;
if(y==30) a30a;
if(y==31) a31a;
if(y==32) a32a;
if(y==33) a33a;
if(y==34) a34a;
if(y==35) a35a;
if(y==36) a36a;
if(y==37) a37a;
if(y==38) a38a;
if(y==39) a39a;
if(y==40) a40a;
if(y==41) a41a;
if(y==42) a42a;
if(y==43) a43a;
if(y==44) a44a;
if(y==45) a45a;
if(y==46) a46a;
if(y==47) a47a;
if(y==48) a48a;
if(y==49) a49a;
if(y==50) a50a;
}
if(g==2)
{
y=abs(R.randInt())%20+1;
if(y==1) b1;
if(y==2) b2;
if(y==3) b3;
if(y==4) b4;
if(y==5) b5;
if(y==6) b6;
if(y==7) b7;
if(y==8) b8;
if(y==9) b9;
if(y==10) b10;
if(y==11) b11;
if(y==12) b12;
if(y==13) b13;
if(y==14) b14;
if(y==15) b15;
if(y==16) b16;
if(y==17) b17;
if(y==18) b18;
if(y==19) b19;
if(y==20) b20;
}
if(g==3)
{
y=abs(R.randInt())%20+1;
if(y==1) c1;
if(y==2) c2;
if(y==3) c3;
if(y==4) c4;
if(y==5) c5;
if(y==6) c6;
if(y==7) c7;
if(y==8) c8;
if(y==9) c9;
if(y==10) c10;
if(y==11) c11;
if(y==12) c12;
if(y==13) c13;
if(y==14) c14;
if(y==15) c15;
if(y==16) c16;
if(y==17) c17;
if(y==18) c18;
if(y==19) c19;
if(y==20) c20;
}
if(g==4)
{
y=abs(R.randInt())%20+1;
if(y==1) d1;
if(y==2) d2;
if(y==3) d3;
if(y==4) d4;
if(y==5) d5;
if(y==6) d6;
if(y==7) d7;
if(y==8) d8;
if(y==9) d9;
if(y==10) d10;
if(y==11) d11;
if(y==12) d12;
if(y==13) d13;
if(y==14) d14;
if(y==15) d15;
if(y==16) d16;
if(y==17) d17;
if(y==18) d18;
if(y==19) d19;
if(y==20) d20;
}
if(g==5)
{
y=abs(R.randInt())%21+1;
if(y==1) e1;
if(y==2) e2;
if(y==3) e3;
if(y==4) e4;
if(y==5) e5;
if(y==6) e6;
if(y==7) e7;
if(y==8) e8;
if(y==9) e9;
if(y==10) e10;
if(y==11) e11;
if(y==12) e12;
if(y==13) e13;
if(y==14) e14;
if(y==15) e15;
if(y==16) e16;
if(y==17) e17;
if(y==18) e18;
if(y==19) e19;
if(y==20) e20;
if(y==21) e21;
}
if(g==0)
{
y=abs(R.randInt())%29+1;
if(y==1) z1;
if(y==2) z2;
if(y==3) z3;
if(y==4) z4;
if(y==5) z5;
if(y==6) z6;
if(y==7) z7;
if(y==8) z8;
if(y==9) z9;
if(y==10) z10;
if(y==11) z11;
if(y==12) z12;
if(y==13) z13;
if(y==14) z14;
if(y==15) z15;
if(y==16) z16;
if(y==17) z17;
if(y==18) z18;
if(y==19) z19;
if(y==20) z20;
if(y==21) z21;
if(y==22) z22;
if(y==23) z23;
if(y==24) z24;
if(y==25) z25;
if(y==26) z26;
if(y==27) z27;
if(y==28) z28;
if(y==29) z29;
}
if(g==6)
{
y=abs(R.randInt())%17+1;
if(y==1) f1;
if(y==2) f2;
if(y==3) f3;
if(y==4) f4;
if(y==5) f5;
if(y==6) f6;
if(y==7) f7;
if(y==8) f8;
if(y==9) f9;
if(y==10) f10;
if(y==11) f11;
if(y==12) f12;
if(y==13) f13;
if(y==14) f14;
if(y==15) f15;
if(y==16) f16;
if(y==17) f17;
}
if(g==7)
{
y=abs(R.randInt())%30+1;
if(y==1) g1;
if(y==2) g2;
if(y==3) g3;
if(y==4) g4;
if(y==5) g5;
if(y==6) g6;
if(y==7) g7;
if(y==8) g8;
if(y==9) g9;
if(y==10) g10;
if(y==11) g11;
if(y==12) g12;
if(y==13) g13;
if(y==14) g14;
if(y==15) g15;
if(y==16) g16;
if(y==17) g17;
if(y==18) g18;
if(y==19) g19;
if(y==20) g20;
if(y==21) g21;
if(y==22) g22;
if(y==23) g23;
if(y==24) g24;
if(y==25) g25;
if(y==26) g26;
if(y==27) g27;
if(y==28) g28;
if(y==29) g29;
if(y==30) g30;
}
if(g==8)
{
y=abs(R.randInt())%30+1;
if(y==1) h1;
if(y==2) h2;
if(y==3) h3;
if(y==4) h4;
if(y==5) h5;
if(y==6) h6;
if(y==7) h7;
if(y==8) h8;
if(y==9) h9;
if(y==10) h10;
if(y==11) h11;
if(y==12) h12;
if(y==13) h13;
if(y==14) h14;
if(y==15) h15;
if(y==16) h16;
if(y==17) h17;
if(y==18) h18;
if(y==19) h19;
if(y==20) h20;
if(y==21) h21;
if(y==22) h22;
if(y==23) h23;
if(y==24) h24;
if(y==25) h25;
if(y==26) h26;
if(y==27) h27;
if(y==28) h28;
if(y==29) h29;
}
if(g==9)
{
y=abs(R.randInt())%20+1;
if(y==1) i1;
if(y==2) i2;
if(y==3) i3;
if(y==4) i4;
if(y==5) i5;
if(y==6) i6;
if(y==7) i7;
if(y==8) i8;
if(y==9) i9;
if(y==10) i10;
if(y==11) i11;
if(y==12) i12;
if(y==13) i13;
if(y==14) i14;
if(y==15) i15;
if(y==16) i16;
if(y==17) i17;
if(y==18) i18;
if(y==19) i19;
if(y==20) i20;
}
Sleep(500);
cout<<endl<<"so 你抽到的学号是:"<<x;
cout<<endl<<endl;
system("pause");
}
/*
cout<<R.randInt()<<endl; // -2147483648 ~ 2147483647
cout<<R.randUnsigned()<<endl; // 0 ~ 4294967295
cout<<R.randLong()<<endl; // -2^63 ~ 2^63-1
cout<<R.randUnsignedLong()<<endl; // 0 ~ 2^64-1
*/
return 0;
}