原创 Codeforces Round #339 D. Skills

                                                             D. Skills                                            

原创 php 圖片上傳與裁剪

<?php //print_r($_FILES["upfile"]); $height = $_POST["h"]; $width = $_POST["w"]; $pos_x = $_POST["x1"]; $pos_y = $_POS

原创 通過金礦模型瞭解動態規劃

     轉載自:http://www.cnblogs.com/sdjl/articles/1274312.html ============================================================

原创 關於jcrop圖片裁剪插件更換不了圖片的問題

 不能更換圖片的代碼  將下文中 ****************內的設置爲全局變量即可 function fileSelectHandler() { // get selected file var oFile =

原创 點到線段直線的距離, 直線與直線的關係 直線與線段的關係

//代碼參考與kuangbin的模板 #include<bits/stdc++.h> using namespace std; const double eps = 1e-8; const double inf = 1e20; co

原创 計算機基礎的重要性

計算機基礎的重要性,推薦了http://bbs.theithome.com/read-htm-tid-123.html的帖子,但是網站已經上不去了,

原创 Educational Codeforces Round 4 A題 (python進行字符串的劃分)

# _*_ coding:utf-8 _*_ import sys n,p,q = map(int, sys.stdin.readline().split()) len1 = -1 len2 = -1 s = raw_input() f

原创 比較大數的大小(10**6) c++ python

                                                              A. Comparing

原创 Educational Codeforces Round 5 D. Longest k-Good Segment

           題目大意:  求連續最長的 k 好子序列。 如果一個序列中最多有k的不同的元素 ,這個序列叫k好子序列!         解題方法: 對於起始點1 求出他的最好子序列 1 - r,  從而你可以發現 2 - r

原创 mysql常用的數據庫操作

(1) mysql -h localhost -u root -p //連接數據庫 (2) net stop mysql //停止mysql服務 (3) net start mysql //開始mysql服務 (4) sho

原创 判斷三角形

1、若有a=b或(a-b)(b-c)(c-a)=0, 則△ABC爲等腰三角形。 2、若有(a-b)2+(b-c)2+(c-a)2=0, 則△ABC爲等邊三角形。 3、若有a2+b2>c2,則△ABC爲銳角三角形; 若有a2+b2=c2,

原创 特效1: 鼠標移動到該區域則顯示小圖標

特效1:  鼠標滑動到某區域, 則該區域的指定地方出現一個可以點擊的小圖標; 實現方法:   jquary + css + html 實現代碼: (1)css部分 .info_edit_show_pic{ position:abs

原创 Codeforces Round #338 (Div. 2) A. Bulbs (python and c++)

A. Bulbs time limit per test 1 second memory limit per test 256 megabytes input standard input output standard

原创 在eclipes 中配置python

           想要在eclipes中配置python 首先需要下載一下兩個文件              (1 ) 安裝 python 2.7                                    windo

原创 HTML 5 placeholder

(1)HTML 5 <input> placeholder 屬性                 詳解:                        placeholder 屬性提供可描述輸入字段預期值的提示信息(hint)。