原创 歐拉計劃 第8題

題目 Find the greatest product of five consecutive digits in the1000-digit number. 找出這個1000位數字中連續5個數字乘積的最大值。 找出以下這個1000位

原创 振興中華

題目: 振興中華 小明參加了學校的趣味運動會,其中的一個項目是:跳格子。 地上畫着一些格子,每個格子裏寫一個字,如下所示: 從我做起振 我做起振興

原创 高斯日記

題目標題: 高斯日記  大數學家高斯有個好習慣:無論如何都要記日記。  他的日記有個與衆不同的地方,他從不註明年月日,而是用一個整數代替,比如:4210  後來人們知道,那個整數就是日期,它表示那一天是高斯出生後的第幾天。這或許也是個好

原创 歐拉計劃 第1題

題目 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these mul

原创 中文亂碼在java中URLEncoder.encode方法要調用兩次解決

因爲在jsp中對中文進行了編碼的時候用的是UTF-8的編碼方式,而在servlet中調用request.getParameter();方法的時候使用服務器指定的編碼格式自動解碼一次,所以前臺編碼一次後臺解碼一次而解碼和編碼的方式不用所以

原创 oracle實現分頁數據重複

問題            做項目過程時,遇到hibernate實現分頁功能中,在不同頁面有存在重複數據。一開始以爲是hibernate的問題,打開hibernate的show_sql=true開啓,將生成的sql在plsql中執行復現了

原创 歐拉計劃 第9題

題目 A Pythagorean triplet is a set of three natural numbers, a  b  c, for which, For example,  There exists exactly one

原创 歐拉計劃 第3題

題目 The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor of the number 600851475143 ? 找出一個合數

原创 歐拉計劃 第5題

題目2520 is the smallest number that can be divided by each of the numbers from 1 to 10 without any rema

原创 排它平方數

題目描述  排它平方數     小明正看着 203879 這個數字發呆。     原來,203879 * 203879 = 41566646641     這有什麼神奇呢?仔細觀察,203879 是個6位數,並且它的每個數位上的數字都

原创 Oracle中left join,right join,inner join分析

    在開始分析之前,我們先準備一些測試數據。首先,初始化三張表,分別爲test_user,test_team,test_type,建表語句如下 create table TEST_USER ( user_id NUMBER,

原创 歐拉計劃 第6題

題目 The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385 The square of the sum of the f

原创 顛倒的價牌

小李的店裏專賣其它店中下架的樣品電視機,可稱爲:樣品電視專賣店。     其標價都是4位數字(即千元不等)。    小李爲了標價清晰、方便,使用了預製的類似數碼管的標價籤,只要用顏色筆塗數字就可以了(參見p1.jpg)。    

原创 JavaScript事件綁定

一、事件綁定的方式1.在Dom標籤中通過事件屬性綁定示例<button onclick="clickMe()">點我呀</button>注意:onclick中若爲函數名,即使沒有參數,也要帶上函數後的括號()。2.在JavaScript

原创 歐拉計劃 第10題

題目 The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 計算兩百萬以下所有質數