上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 98 下一页
摘要: Problem Statement Dolphin resides in two-dimensional Cartesian plane, with the positive x-axis pointing right and the positive y-axis pointing up.Curr 阅读全文
posted @ 2018-03-13 20:05 Veritas_des_Liberty 阅读(376) 评论(0) 推荐(0)
摘要: Problem Statement Two foxes Jiro and Saburo are playing a game called 1D Reversi. This game is played on a board, using black and white stones. On the 阅读全文
posted @ 2018-03-13 19:00 Veritas_des_Liberty 阅读(287) 评论(0) 推荐(0)
摘要: Problem Statement You are given an integer N. Find the number of the positive divisors of N!, modulo 109+7. Constraints 1≤N≤103 Input The input is giv 阅读全文
posted @ 2018-03-12 21:58 Veritas_des_Liberty 阅读(246) 评论(0) 推荐(0)
摘要: 大家都知道,快速排序是不稳定的排序方法。 如果对于数组中出现的任意a[i],a[j](i<j),其中a[i]==a[j],在进行排序以后a[i]一定出现在a[j]之前,则认为该排序是稳定的。 某高校招生办得到一份成绩列表,上面记录了考生名字和考生成绩。并且对其使用了某排序算法按成绩进行递减排序。现在 阅读全文
posted @ 2018-03-10 12:08 Veritas_des_Liberty 阅读(505) 评论(0) 推荐(0)
摘要: Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。 Input测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (<=100000) 和 C,其中 N 是纪录的条数,C 是指定排序的列号。以下有 N 行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中 阅读全文
posted @ 2018-03-10 11:15 Veritas_des_Liberty 阅读(424) 评论(0) 推荐(0)
摘要: Given two integers, a and b, you should check whether a is divisible by b or not. We know that an integer a is divisible by an integer b if and only i 阅读全文
posted @ 2018-03-09 19:11 Veritas_des_Liberty 阅读(303) 评论(0) 推荐(0)
摘要: A range is given, the begin and the end are both integers. You should sum the cube of all the integers in the range. InputThe first line of the input 阅读全文
posted @ 2018-03-08 15:19 Veritas_des_Liberty 阅读(155) 评论(0) 推荐(0)
摘要: 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能计算出这个区间内有多少个美素数 阅读全文
posted @ 2018-03-08 14:57 Veritas_des_Liberty 阅读(225) 评论(0) 推荐(0)
摘要: Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both rows and columns of the grid are numbered from 1 to 1000. Rows are numbered from top 阅读全文
posted @ 2018-03-07 21:53 Veritas_des_Liberty 阅读(193) 评论(0) 推荐(0)
摘要: Problem Description 把一个偶数拆成两个不同素数的和,有几种拆法呢? Input 输入包含一些正的偶数,其值不会超过10000,个数不会超过500,若遇0,则结束。 Output 对应每个偶数,输出其拆成不同素数的个数,每个结果占一行。 Sample Input 30 26 0 3 阅读全文
posted @ 2018-03-05 21:51 Veritas_des_Liberty 阅读(281) 评论(0) 推荐(0)
上一页 1 ··· 74 75 76 77 78 79 80 81 82 ··· 98 下一页