利用26位來標記a-z字母
int totallen:總情況數為26個1->
遍歷總totallen,輸出情況:
**:
int a = 1;
int b = a<<1;
int c = a<<2;..
.int z = a<<25;
int totallen = 0;
//將a-z標記放入陣列中;
int allcs = new
int[26];
char cs = new
char;
for(int i=0;i<26;i++)
//計算總totallen
for (int i = 1, i<26,i++)
//先空出一行,為了美觀
system.out.println();
//開始列印
for (int i = 1; ifor(int j=0;j<26;j++)
}//輸出完一種組合,換行
system.out.println();
}
shell指令碼if a到 z
a file 如果 file 存在則為真。b file 如果 file 存在且是乙個塊特殊檔案則為真。c file 如果 file 存在且是乙個字特殊檔案則為真。d file 如果 file 存在且是乙個目錄則為真。e file 如果 file 存在則為真。f file 如果 file 存在且是乙個...
linux a到 z的用法
a file 如果 file 存在則為真。b file 如果 file 存在且是乙個塊特殊檔案則為真。c file 如果 file 存在且是乙個字特殊檔案則為真。d file 如果 file 存在且是乙個目錄則為真。e file 如果 file 存在則為真。f file 如果 file 存在且是乙個...
有趣的演算法
friday,july 22,2016 19 50 50 a b兩人分別在兩座島上。b生病了,a有b所需要的藥。c有一艘小船和乙個可以上鎖的箱子。c願意在a和b之間運東西,但東西只能放在箱子裡。只要箱子沒被上鎖,c都會偷走箱子裡的東西,不管箱子裡有什麼。如果a和b各自有一把鎖和只能開自己那把鎖的鑰匙...