1. 何謂稀疏矩陣
2. 答ch2. 10
herrDeng網內搜尋

自訂搜尋
Ads
2014年10月8日 星期三
2014年10月7日 星期二
2014年10月1日 星期三
2014年9月30日 星期二
2014年9月24日 星期三
2014年9月17日 星期三
改寫成for迴圈
public class for1 {
public static void main(String[] args) {
int [] a={23,67,89,54};
int sum=0;
double av;
int i=0;
do{
sum+=a[i++];
}
while( i<=a.length) ;
av=(double)sum/a.length;
System.out.println(av);
}
}
public static void main(String[] args) {
int [] a={23,67,89,54};
int sum=0;
double av;
int i=0;
do{
sum+=a[i++];
}
while( i<=a.length) ;
av=(double)sum/a.length;
System.out.println(av);
}
}
2014年9月16日 星期二
2014年9月14日 星期日
2014年9月10日 星期三
訂閱:
文章 (Atom)
熱門文章
-
請用CPU-Z軟體檢測Cache & Memory 註:快取(L1-L3: SRAM) 第一級快取(L1)–通常存取只需要幾個週期,通常是幾十個KB。 第二級快取(L2)–比L1約有2到10倍較高延遲性,通常是幾百個KB或更多。 第三級快取(L3)(不...
-
需要練習的Java程式:
-
Ex1 加權平均
-
計算gcd(123456789,999999999)
-
請用Java顯示以下字串: