博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uSubmitStatusDescription读入两个小于10000的正整数A和B,计算A+B。需要注意的是:如果A和B的末尾K(不超过8)位数字相同,请直接输出-1。... 阅读全文
posted @ 2015-08-25 21:51 hfcnal 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 夜虽深,人未眠你,耳边飞翔 天性使然还是怪我让你疯狂我,无力抵抗你却叫上伙伴,一拥而上让我痛,让我痒 分一更,秒一更,身惨梦不成,我竟不作声至今时,身之穷困,独坐愁苦。夜不能寐,侧耳远听,吟啸成群,边声四起。晨坐听之,不觉泪下。嗟乎,能不慨然!能不悲哉!此刻饿了累了也倦了我只想说,特么的让我睡一会可... 阅读全文
posted @ 2015-08-25 17:49 hfcnal 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。。。。。。。。。。 。。。。。。 阅读全文
posted @ 2015-08-25 17:48 hfcnal 阅读(220) 评论(2) 推荐(0) 编辑
摘要: C -CTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 569ADescriptionLittle Lesha loves listening to m... 阅读全文
posted @ 2015-08-21 20:35 hfcnal 阅读(182) 评论(0) 推荐(0) 编辑
摘要: B -BTime Limit:1000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionnparticipants of the competition were split intomteams in some manne... 阅读全文
posted @ 2015-08-21 20:29 hfcnal 阅读(176) 评论(0) 推荐(0) 编辑
摘要: A -ATime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionYou probably have played the game "Throwing Balls into the Basket". It ... 阅读全文
posted @ 2015-08-21 20:21 hfcnal 阅读(272) 评论(0) 推荐(0) 编辑
摘要: Time Limit:3000MSMemory Limit:Unknown64bit IO Format:%lld & %lluSubmitStatusDescriptionDuring the early stages of the Manhattan Project, the dangers o... 阅读全文
posted @ 2015-08-20 19:12 hfcnal 阅读(418) 评论(0) 推荐(0) 编辑
摘要: sendatable When participating in programming contests, you sometimes face the following problem: You knowhow to calcutale the output for the given in... 阅读全文
posted @ 2015-08-20 15:11 hfcnal 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 这个困扰了自己好久,终于找到了解释,还有自己改动了一点点,耐心看完一定能加深理解扩展欧几里德算法-求解不定方程,线性同余方程。 设过s步后两青蛙相遇,则必满足以下等式: (x+m*s)-(y+n*s)=k*l(k=0,1,2....) 稍微变一下形得: (n-m)*s+k*l=x-y... 阅读全文
posted @ 2015-08-20 10:53 hfcnal 阅读(583) 评论(0) 推荐(0) 编辑
摘要: O -计数Time Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionGerald got a very curious hexagon for his birthday. The boy found o... 阅读全文
posted @ 2015-08-19 22:16 hfcnal 阅读(726) 评论(0) 推荐(0) 编辑
摘要: L -计数,排列Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上... 阅读全文
posted @ 2015-08-19 20:24 hfcnal 阅读(292) 评论(0) 推荐(0) 编辑
摘要: J -数论,质因数分解Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionTomorrow is contest day, Are you all ready? We have been train... 阅读全文
posted @ 2015-08-19 17:03 hfcnal 阅读(173) 评论(0) 推荐(0) 编辑
摘要: F -概率(经典问题)Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionSometimes some mathematical results are hard to believe. One of ... 阅读全文
posted @ 2015-08-19 15:06 hfcnal 阅读(154) 评论(0) 推荐(0) 编辑
摘要: DescriptionProbabilityTime Limit: 1 sec Memory Limit: 16MBConsider rectangular coordinate system and point L(X,Y) which is randomly chosen among all p... 阅读全文
posted @ 2015-08-19 09:15 hfcnal 阅读(274) 评论(0) 推荐(0) 编辑
摘要: E -期望(经典问题)Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionGiven a dice withnsides, you have to find the expected number of... 阅读全文
posted @ 2015-08-18 22:01 hfcnal 阅读(250) 评论(0) 推荐(0) 编辑
摘要: G -数论,最大公约数Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThere is a hill with n holes around. The holes are signed from... 阅读全文
posted @ 2015-08-18 16:15 hfcnal 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 第六周H题 -数论,晒素数Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一... 阅读全文
posted @ 2015-08-18 15:36 hfcnal 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 第六周A题 -几何概型Time Limit:1000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionYou are going from Dhaka to Chittagong by train and you came to know... 阅读全文
posted @ 2015-08-18 10:26 hfcnal 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 第六周练习I题I -数论,线性方程Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThe Sky is Sprite. The Birds is Fly in the Sky. The Wind... 阅读全文
posted @ 2015-08-17 17:19 hfcnal 阅读(233) 评论(0) 推荐(0) 编辑
摘要: F -FTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionA subsequence of a given sequence is the given sequence with some ele... 阅读全文
posted @ 2015-08-15 16:50 hfcnal 阅读(368) 评论(0) 推荐(0) 编辑