摘要: The heat during the last few days has been really intense. Scientists from all over the Berland study how the temperatures and weather change, and the 阅读全文
posted @ 2019-01-21 10:52 悲离 阅读(188) 评论(0) 推荐(0) 编辑
摘要: A. A Compatible Pairtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output Nian is a monster which live 阅读全文
posted @ 2019-01-20 21:12 悲离 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 原题链接:点我转移 阅读全文
posted @ 2019-01-15 21:40 悲离 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ///大整数阶乘的和 #include using namespace std; int main() { int n; while(cin>>n) { int a[2000]= {1},b[2000]= {0}; //存放结果的数组a。 int c; //b用于存放每位存放的结果。 int r=0; //r用来表示进位的数... 阅读全文
posted @ 2019-01-15 20:54 悲离 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 和2的n次方基本一样,只不过是把2换出了变化的i了而已,其他的判断操类似 阅读全文
posted @ 2019-01-15 16:50 悲离 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 原题链接:点我转移 阅读全文
posted @ 2019-01-11 13:28 悲离 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 约瑟夫环 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 阅读全文
posted @ 2019-01-11 11:08 悲离 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。 阅读全文
posted @ 2019-01-11 11:06 悲离 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 题目链接:点我转移 阅读全文
posted @ 2019-01-10 20:31 悲离 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 原题链接:点我转移 阅读全文
posted @ 2019-01-09 17:46 悲离 阅读(216) 评论(0) 推荐(0) 编辑