原创 棧--二進制轉化

c #include <stdio.h> //將十進制轉換成二進制數字 int main(){ int stack[10000],top=0;//創建一個棧 int m; scanf("%d",&m);

原创 E-棧--括號匹配

1 #include<stack> #include<string.h> #include<stdio.h> using namespace std; char s[2000]; int main() { while(ge

原创 微信小程序---第一天

下載工具: https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html 微信掃碼登陸-創建本地小程序項目(無appid)-編寫第一個hello world程序

原创 E-括號匹配

括號匹配 Sample Input 2 {{[[(())]]}} ({[}]) Sample Output Valid //匹配 Invalid //不匹配 c #include<stdio.h>

原创 E- 1-42隨機數

#include<stdio.h> #include<time.h> #include<stdlib.h> int main() { srand(time(0)); for(int i=0;i<10;i++)

原创 hdu1237-簡單計算器

Problem Description 讀入一個只包含 +, -, *, / 的非負整數計算表達式,計算該表達式的值。 Input 測試輸入包含若干測試用例,每個測試用例佔一行,每行不超過200個字符,整數和運算符之間用一個

原创 KMP

理論部分網上一大堆,新學的我也沒弄透,只是在這裏稍微總結一下。 應付筆試: 看不懂就點這裏,更詳細: july的從頭到尾徹底理解KMP http://blog.csdn.n et/v_july_v/article/details

原创 E-斐波那契數

1 #include<stdio.h> long long int abc[100]= {0,1,2,3,5}; int sum=0,pos=4;//No.1 long long int fun(); long long int

原创 學python第一天---第一個python程序

資料:一譯中文文檔python api if語句 要記得加冒號。相比於c++,python裏 and 對應 && , or 對應 || ,not 對應 ! 還有三目運算 B if A else C ,如果A爲true,則執行

原创 學python第二天

python2.7 的 Built-in Functions 文檔連接 字符串的索引、切片 感覺很像c語言裏的數組,但比數組更方便,而且還不會有數組越界的情況。切片就是取子串。以串“32F”爲例。 0:2即從下角標0開始切到第下角

原创 Hash-哈希表

1.什麼是散列表? 散列表(哈希表)能根據某個特定的映射函數,來定位到表中一個位置來訪問記錄,以加快查找的速度。 舉個簡單的例子,就比如現有一個數組(NULL代表空值): 位置i arr[0] arr[1] arr[2]

原创 cf-e

/*aeiouy*/ #include<stdio.h> char*J="bidirectional",c; ///bidirectional main() { while((c=getchar())&64&&(~c&

原创 學python第一天---環境

python2.7 pycharm2016.3.2 字體偏好 Consolas 14 在settings-editor- appearance-show line numbers顯示行號 pycharm太卡,爲了提高速度修

原创 2017學習內容

1. 南京大學mooc《程序猿與攻城獅》 一門大學先修課,大二看了感覺收穫不大. 2.《jsp基礎教程》 清華大學出版社 這書再配合着runoob網站上的教程,我兩星期內學的有點頭緒,感覺不錯 3.騰訊課堂html+css 講的挺

原创 地精排序-Gnome Sort

1.if i==0,we should straightly i++; 2.else if it’s ordered until a[i],we should i++ to skip 3.if it is unordered