herrDeng網內搜尋
自訂搜尋
Ads
2015年12月11日 星期五
2015年12月10日 星期四
RSA cipher解密
解回明文
import java.math.BigInteger;
public class ex2 {
public static void main(String[] args) {
BigInteger n=new BigInteger("5375388922978628413155272656747327652336395530199103021900839849090732075550437233179766702787100243937175380405082366985570014906877346763928089904752147");
BigInteger d=new BigInteger("3562336077709646293856410845969831535184737018515713275359421306058446640504285015571117411667368274571293441355632153687264610437891764149716318547851669");
BigInteger c=new BigInteger("4646214319130296784626336389218304062490256344497824318351606042291236051054052316596982428177153055110734920639810028422212513692377137973131254994553255");
}
}
2015年12月4日 星期五
ex10 字串練習
String X="this is an exercise. A happy Day"
1.去掉空格
2. a->@, e->'您'
3 改大寫
4 取子字串4~8
5. 字串反轉
1.去掉空格
2. a->@, e->'您'
3 改大寫
4 取子字串4~8
5. 字串反轉
2015年12月1日 星期二
2015年11月27日 星期五
2015年11月26日 星期四
2015年11月22日 星期日
2015年11月20日 星期五
訂閱:
文章 (Atom)
熱門文章
-
C++用 -1 mask法達到branchless解Leetcode1513 Number of Substrings With Only 1s|Py3 1-liner 其實很容易,想練功,試試一行解,或是把if分岔拿掉 [C++無分岔解請進]
-
請用C/C++ 程式計算 S=1*1+2*2+3*3+4*4+.....+20*20=?
-
計算你上學期加權平均
-
問int怎麼存-689這個數字。 int用4個bytes。 答案請用16進位表達。
-
計算你的BMI
-
何謂演算法?並列出一無窮迴圈的範例!
-
將費氏數列輸出至一long 陣列 其中f[0]=1, f[1]=2, f[n]=f[n-1]+f[n-2] (n>=2)
-
算上學期加權平均
-
請問你所使的電腦,CPU的規格 Cache多大?其他硬體配置...... 另外, "INTEL® XEON PHI™ 處理器 7230F"的大致規格為?
-
列印課表數字代碼矩陣,以及代碼的課名 提示: 參考此連結