03 2012 档案
摘要:Time Limit: 10 Seconds Memory Limit: 32768 KB In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encrypti...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Your school organized a big party to celebrate your team brilliant win in the prestigious, worldfamous ICPC (International Collegiate Poetry Contes...
阅读全文
摘要:存在于access中的所有数据,可以通过非常简单的办法导出到其它数据库中。 方法如下: 在access中右击需要导出的表 点击导出: 此时可以看到access提供的所有的导出方法,这里为了导出到其它数据库,我选择ODBC数据库 点击确定,此时弹出一个ODBC选择的对话框,选择你已经建立的ODBC连接即可。 例如,我将数据库导出到了SqlServer 2008中,选择能够...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimu...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before cl...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he explored tak...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Scenario A single playing card can be placed on a table, carefully, so that the short edges of the card are parallel to the table's edge, and half...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. ``Look, I've built a wa...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB In the 22nd Century, scientists have discovered intelligent residents live on the Mars. Martians are very fond of mathematics. Every year, they wou...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBIn most languages, text is written from left to right. However, there are other languages where text is read and written from right to left. As a first step towards a program that automatically translates from a left-to-right language into a right-to-left
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Mathematics can be so easy when you have a computer. Consider the following example. You probably know that in a right-angled triangle, the length ...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A group of n gamblers decide to play a game: At the beginning of the game each of them will cover up his wager on the table and the assitant must make su...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB One measure of ``unsortedness'' in a sequence is the number of pairs of entries that are out of order with respect to each other. For instanc...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB It is said that 90% of frosh expect to be above average in their class. You are to provide a reality check. Input The first line of standard inpu...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a^2+b^2 +m)/(ab) is an integer. This problem ...
阅读全文
摘要:Time Limit: 10 Seconds Memory Limit: 32768 KB We all know that FatMouse doesn't speak English. But now he has to be prepared since our nation will join WTO soon. Thanks to Turing we have compu...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB For each list of words, output a line with each word reversed without changing the order of the words. This problem contains multiple test cases! ...
阅读全文
摘要:Time Limit: 10 Seconds Memory Limit: 32768 KB In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n pl...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Starting from point (0,0) on a plane, we have written all non-negative integers 0, 1, 2,... as shown in the figure. For example, 1, 2, and 3 has be...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Professor Robert A. J. Matthews of the Applied Mathematics and Computer Science Department at the University of Aston in Birmingham, England has rece...
阅读全文
摘要:之前在解决一道算法题的时候,应用到set,特意对这个stl的容器类做了一些了解。在我的印象中,set就是一个元素不重复的集合,而事实上也正是这样的。无论从MSDN还是任何其它地方,都会告诉我们set的元素不可以重复。反之,只要元素不重复,就可以顺利的放入到set中。看起来这实在是再清楚不过了,但是仔细想一想的话,就会发现,话说只要不重复的元素就可以被放入到一个set中,但是什么样的元素是不重复的元...
阅读全文
摘要:Time Limit: 10 Seconds Memory Limit: 32768 KB For hundreds of years Fermat's Last Theorem, which stated simply that for n > 2 there exist no integers a, b, c > 1 such that a^n = b^n + c^n, has r...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked. One night,...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KBGiven a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.Example For n = 24, o = 3 and p = 3.Task Write a program which for each data set:reads a positive integer n, computes the odd integer o and the nonnegative in
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB Given a positive integer n, print out the positions of all 1's in its binary representation. The position of the least significant bit is 0. Examp...
阅读全文
摘要:Time Limit: 2 Seconds Memory Limit: 65536 KB You may have heard of the book '2001 - A Space Odyssey' by Arthur C. Clarke, or the film of the same name by Stanley Kubrick. In it a spaceship is ...
阅读全文
摘要:Digital RootsTime Limit: 2 Seconds Memory Limit: 65536 KBBackground The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those digits are
阅读全文
摘要:Old BillTime Limit: 2 Seconds Memory Limit: 65536 KBAmong grandfather��s papers a bill was found:72 turkeys $_679_The first and the last digits of the number that obviously represented the total price of those turkeys are replaced here by blanks (denoted _), for they are faded and are now illegible.
阅读全文
摘要:在项目开发过程中,经常会写一些工具类。这些类里面,其实什么具体业务也没有做,只是为一些逻辑和算法提供了一些实现。比如一些格式化字符串的操作,获取连接字符串的操作等等。为了让这些方法通用,能够非常方便的...
阅读全文
摘要:这两天比较闲,没有什么事情做。有一次在网上逛的时候,看到了一篇关于“java初学者JDK”的安装和环境变量的设置的文章。在讲到用户变量和系统变量的时候想到,其实系统在寻找应用程序的时候是按照%Syst...
阅读全文