04 2019 档案

摘要:【真题出处】 【题目描述】 菲波那契数列是指这样的数列: 数列的第一个和第二个数都为1,接下来每个数都等于前面2个数之和。 给出一个正整数a,要求菲波那契数列中第a个数对1000取模的结果是多少。 【输入】 第1行是测试数据的组数n,后面跟着n行输入。每组测试数据占1行,包括一个正整数a(1 ≤ a 阅读全文
posted @ 2019-04-26 20:46 DreamShadow 阅读(1321) 评论(0) 推荐(0)
摘要:直接上代码吧: 以上为子程序,经供参考,若需要完整版,请点击关注,然后问楼主所要即可。 阅读全文
posted @ 2019-04-20 20:31 DreamShadow 阅读(344) 评论(0) 推荐(0)
摘要:转载 阅读全文
posted @ 2019-04-20 20:19 DreamShadow 阅读(6645) 评论(0) 推荐(0)
摘要:【Clique Problem】 题目描述 The clique problem is one of the most well-known NP-complete problems. Under some simplification it can be formulated as follows 阅读全文
posted @ 2019-04-19 21:51 DreamShadow 阅读(269) 评论(0) 推荐(0)