原创 Project Euler Problem 11
把其中的long全部改成int 可以提高速度到222ms 原來的速度爲666ms //08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 //49 49 99 4
原创 Project Euler Problem 6
public class E6 { public static void main(String[] args) { int soq=0,qos=0; for(int i=1;i<=100;i++)
原创 project Euler 15 可改進,用楊輝三角
時間是 0ms。 /** * Created by Administrator on 2015/5/21. */ public class E15 { public static long compute(long big
原创 project Euler 12
時間是216ms import java.util.Date; /** * Created by Administrator on 2015/5/11. */ public class E12 { //計算低x個三角形數
原创 project Euler problem 9
/** * Created by Administrator on 2015/5/9. */ public class E9 { public static int[] computeTri() { i
原创 Project Euler Problem 7
public class E7 { public static void main(String[] args) { int count=0; boolean finish=true;
原创 project Euler 14
417ms import java.util.Date; /** * Created by Administrator on 2015/5/18. */ class E14 { public static long[] compu
原创 project Euler problem 8
import java.util.ArrayList; /** * Created by Administrator on 2015/5/9. */ public class E8 {
原创 project Euler problem 10
/** * Created by Administrator on 2015/5/10. */ public class E10 { //判斷一個數是否是質數 public static boolean isPrim
原创 Jquery map()與get()
jQuery之map()和get() jQuery下有個概念叫“類數組”,比如$( " li " ),當取到一個集合的時候,會有數組的一些屬性,但是
原创 css 基本結構
選擇器{ 屬性:屬性值; 屬性:屬性值;} 選擇器分組用逗號;
原创 css 背景屬性
背景位置 background-position:值 值可以是 center top bottom right left ,XXpx,XXcm, XX%, 其中center, top,bottom,right,left 一共可以組
原创 project Euler problem13
計算數組中對應位置的存儲個位數的數字時出現錯誤,求商求餘進行對最高位的剝離時出現錯誤,可以直接算出該數是n位數,然後求商temp=number/10^n,再用number—temp*10^n,或者直接用 number=number%10^
原创 移動前端開發之viewport的深入理解
在移動設備上進行網頁的重構或開發,首先得搞明白的就是移動設備上的viewport了,只有明白了viewport的概念以及弄清楚了跟viewport有關的meta標籤的使用,才能更好地讓我們的網頁適配或響應各種不同分辨率的移動設備。 一、
原创 JQ中 :not .not 僞類與方法之間的選擇
$('#news tr:nth-child(even)').addClass('alt'); 與 $('#news').find('tr:nth-child(even)').addClass('alt'); 是一樣的結果, 有時候使用.n