標籤:由於目前手裡只有16MHZ的2520封裝的貼片晶振,8MHZ這種封裝做不到這麼小,所以就先用16MHZ,這樣我們就需要修改程式相關的RCC時鐘:1,stm32f4xx.h#define HSE_VALUE ((uint32_t)16000000) /*!< Value of the External oscillator in Hz */2,system_stm32f4xx.c/* PLL_VCO = (HSE_VALUE or HSI_VALUE /
標籤://空間分配//1 x 找連續的長度為x的空間//2 x d [x,x+d-1]空間的佔用清除//維護ma_l , ma_r , ma分別為左邊的空閑空間,右邊的空閑空間和最大的空閑空間#include<cstdio>#include<cstring>#include<iostream>using namespace std ;const int maxn = 50010 ;#define left
標籤:poj 1797 Heavy TransportationDescription Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whether there really is a way from the place his customer
標籤:uva12546. LCM Pair SumOne of your friends desperately needs your help. He is working with a secret agency and doing some encoding stuffs. As the mission is confidential he does not tell you much about that, he just want you to help him with a
標籤:DescriptionA common pastime for poker players at a poker table is to shuffle stacks of chips. Shuffling chips is performed by starting with two stacks of poker chips, S1 and S2, each stack containing C chips. Each stack
標籤:題目連結 題意: 輸入: 第一個: n k p x y 第二行:k個數 n: 數的數量 k:n個數中已經知道的k個數 p:n個數取值的上界,下界是1 x:n個數的和的上界x y:n個數的中位元至少是 y 輸出: 補充其餘的n-k個數,使得這個n個數的和不大於x,中位元不小於y 解題思想: 對已經知道的k個數,判斷其中大於等於y的數median有幾個, 若median<=n/2
Ubuntu下Zabbix安裝及使用問題,ubuntuzabbix 1.configure: error: MySQL library not found MySQL library not foundroot@kallen:~# apt-get install libmysqlclient-dev2.configure error: Invalid Net-SNMP directory - unable to find net-snmp-configroot@kallen:~#