摘要: 有一个无限大的矩形,初始时你在左上角(即第一行第一列),每次你都可以选择一个右下方格子,并瞬移过去(如从下图中的红色格子能直接瞬移到蓝色格子),求到第nn行第mm列的格子有几种方案,答案对10000000071000000007取模。 Input多组测试数据。 两个整数n,m(2≤n,m≤10000 阅读全文
posted @ 2017-12-19 16:13 会飞的雅蠛蝶 阅读(235) 评论(0) 推荐(0) 编辑
摘要: In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in th 阅读全文
posted @ 2017-12-19 15:36 会飞的雅蠛蝶 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N. Two integers are said to be 阅读全文
posted @ 2017-12-19 15:19 会飞的雅蠛蝶 阅读(133) 评论(0) 推荐(0) 编辑
摘要: LazyChild is a lazy child who likes candy very much. Despite being very young, he has two large candy boxes, each contains n candies initially. Everyd 阅读全文
posted @ 2017-12-19 15:15 会飞的雅蠛蝶 阅读(130) 评论(0) 推荐(0) 编辑