摘要: Word AmalgamationProblem DescriptionIn millions of newspapers across the United States there is a word game called Jumble. The object of this game is ... 阅读全文
posted @ 2015-05-29 21:53 御心飞行 阅读(594) 评论(0) 推荐(0) 编辑
摘要: Lowest BitProblem DescriptionGiven an positive integer A (1 2 #include 3 #include 4 using namespace std; 5 int fen(int n) 6 { 7 int i,a; 8 fo... 阅读全文
posted @ 2015-05-29 18:53 御心飞行 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 题目描述 点击这里对于正整数n,k,我们定义这样一个函数f,它满足如下规律现在给出n和k,你的任务就是要计算f(n,k)的值。输入首先是一个整数T,表示有T组数据 接下来每组数据是n和k(1 2 #include 3 #include 4 using namespace std; 5 int mai... 阅读全文
posted @ 2015-05-29 15:36 御心飞行 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 题目描述Master LU 非常喜欢数学,现在有个问题:在二维空间上一共有n个点,LU每连接两个点,就会确定一条直线,对应有一个斜率。现在LU把平面内所有点中任意两点连线,得到的斜率放入一个集合中(若斜率不存在则不计入集合),他想知道这个集合中有多少个元素。输入第一行是一个整数T,代表T组测试数据 ... 阅读全文
posted @ 2015-05-29 14:41 御心飞行 阅读(265) 评论(0) 推荐(0) 编辑