原创 Dan Boneh Coursera Cryptography I Week 1 - Programming Assignment

Many Time Pad Let us see what goes wrong when a stream cipher key is used more than once. Below are eleven hex-encoded

原创 C++11學習筆記

參照侯捷老師Boolan上C++標準11-14。 variadic templates 數量不定的模板參數 #include <iostream> using namespace std; void print(){} temp

原创 密碼:雜學

Base64 百度百科:Base64是網絡上最常見的傳輸8Bit字節碼的編碼方式之一,Base64就是一種基於64個可打印字符來表示二進制數據的方法。 Base64用4個6位表示3個8位。Base64加密後的密文均有大小寫字母、數字、+、

原创 python神經網絡編程 手寫數字識別

import numpy import scipy.special #import matplotlib.pyplot class neuralNetwork: def __init__(self,inputnodes,hid

原创 判斷閏年,循環求和及三數字排序 彙編實現

輸入一個年份,判斷其是否是閏年。 include vcIO.inc .data frmStr1 byte '%d', 0 year dword ? hello2 byte 'runnian',0

原创 LeetCode 926. Flip String to Monotone Increasing

A string of '0's and '1's is monotone increasing if it consists of some number of '0's (possibly 0), followed by some n

原创 LeetCode 927. Three Equal Parts

Given an array A of 0s and 1s, divide the array into 3 non-empty parts such that all of these parts represent the same

原创 彙編 循環程序設計

編程寫一個完整的程序,將數組array中的元素按逆序存放,要求程序中附加的變量最少。數據段的定義如下:   .data     array  dword  12,4, 168,122,-33,56,78,99,345, 66,-5  

原创 《Python自然語言處理》問題彙總

針對Steven Bird等著《Python自然語言處理》書中問題總結: P3: nltk.download()不好用 文件下載:百度網盤下載,提取碼:7dbt   下載完成後解壓放在C:\下即可 P7: xxx.generate()函數

原创 Leetcode 832. Flipping an Image

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed,

原创 算符優先分析過程 編譯原理

算符優先分析過程只考慮算符(終結符)之間的優先關係,分析掃描每個規約式的算符間優先關係。 根據龍書闡述,算符優先分析逐漸淘汰了。orz 但仍然實現之。 示例語法如下: D->#E# E->E+T|T T->T*F|F F->P$F|P P

原创 模擬銀行系統 java,mysql實現

模擬電子銀行,開戶,存錢,取錢,查詢用戶信息,修改用戶信息,查詢餘額,查詢明細,註銷,退出,等等  基本實現了相關功能。但是規定每次需要重新登錄,還是很麻煩的。 另外用戶註銷時候,沒有規定刪除operator表中信息,此處會有問題。但想了

原创 兵乓球比賽 8255 C語言實現

  1)基本要求 用8個LED發光管(紅黃綠)的來回滾動顯示來模擬打乒乓球時乒乓球在兩邊球檯上的來回運動。比賽雙方用按鈕/開關(雙方各用1個按鈕/開關)的方法來模擬發球與接球,即發球方按動其控制的按鈕/開關/健,球從發球方一側向對方運動(

原创 彙編 子程序與操作系統功能調用

1.編寫一個求n!的子程序,利用它求1!+2! +3! +4! +5! +6!  的和並輸出。     要求參數的傳遞分別採用:寄存器傳遞、全局變量傳遞,堆棧傳遞三種不同的方法實現。     1,2使用寄存器傳遞,3,4使用全局變量,5,

原创 彙編 學習總結

關於push和pop: mov eax,4 mov ebx,5 push eax push ebx pop eax pop ebx ;交換eax與ebx