Time of Update: 2018-12-05
1.開啟終端 輸入 sudo rm -fr /Library/Preferences/Parallels/licenses.xmlrm -rfd/users/~you~/library/preferences/com.parallels*”rm -rfd/users/~you~/library/preferences/parallels*sudo -s rm -rfd /private/tmp/com.apple.installer*sudo -s rm
Time of Update: 2018-12-05
作者:ARM-WinCE對於任何作業系統來說,系統Timer就像是OS的心臟,本質來說,作業系統就是中斷驅動的。在WinCE中,系統Timer會在OAL中實現,一般在OEMInit函數中進行初始化,而且都是在Interrupt初始化之後進行。一般WinCE的系統Timer有兩種實現方法,一種是Fixed Tick,另一種是Variable Tick。一般比較常用的是Fixed
Time of Update: 2018-12-05
snk 1用來證明這個產生的程式集是你發布的; 2如果你寫的程式集要用在多個應用程式上的話,那麼這個程式集必須要擁有唯一的名稱,這個強式名稱是程式集唯一名稱的一部分。 3隻要你保護好你的snk檔案不要公布出去,那麼沒有任何人可以假冒你發布程式集。 強式名稱簽名的原理是不對稱簽名驗證演算法。 首先你用sn.exe命令列程式產生一個.snk的密鑰檔案,這個檔案包括了兩個部分的內容。 1 私密金鑰,就是在vs.net編譯的時候產生驗證碼的東西。
Time of Update: 2018-12-05
'/r'是斷行符號,'/n'是換行,前者使游標到行首,後者使游標下移一格。通常用的Enter是兩個加起來。下面轉一篇文章。 斷行符號和換行 今天,我總算搞清楚“斷行符號”(carriage return)和“換行”(line feed)這兩個概念的來曆和區別了。 在電腦還沒有出現之前,有一種叫做電傳打字機(Teletype Model
Time of Update: 2018-12-05
#include<stdio.h>#include<stdlib.h>#define MAX_INT 2147483647char num1[300],num2[300];int main(){ char c; while (scanf("%s %c %s", num1, &c, num2)==3) { printf("%s %c %s\n", num1, c, num2); double a, b;
Time of Update: 2018-12-05
這道TLE了,用的是最初的網路流演算法,具體叫什麼演算法我就記不清了,但是像這樣的資料,是逾時了這道題主要是SAP求最大流資料不大,矩陣可以解決,後面的文章會寫關於SAP的知識的學習筆記裡面,會詳細說一下SAP演算法,這裡就直接說一下這道題這道題建圖不難,就是源點和題目, 容量1, 題目和目錄,容量1, 目錄和匯點,容量是目錄所包含的題目數代碼如下:(這也是一道模板題)#include <cstdio>#include <cstring>#include
Time of Update: 2018-12-05
#include <stdio.h>#include <string.h>#include <math.h>#define MAX 200int n;int p[MAX], ans[MAX], used[MAX]; float x[MAX], y[MAX], min;float cal( float x1, float y1, float x2, float y2 ){return sqrt( pow(x1-x2, 2) + pow(y1-y2, 2) ) +
Time of Update: 2018-12-05
必要要先說一下:位元運算,真TM強大呀!!!!8皇后的問題,衍生出來的N皇后的問題,我開始真的是按行暴搜,唯一最佳化的是用二進位來判斷對角線和列上是否有皇后。必然逾時。研究了一下大牛的代碼,位元運算被神一樣的運用!ORZ!剪枝:1、一個數和它的負數取與,得到的是最右邊的1!負數在電腦裡面的表示是原碼取反加1,可以試一下,確實是得到最右邊的。這樣就可以簡化for迴圈,免得一位一位地判斷了;2、按照行來進行枚舉,同時將兩個對角線和列的狀況壓縮表示!詳細解釋的話,我們可以這樣想,對於任何一行,都有n個
Time of Update: 2018-12-05
題目連結//hdoj 4551//2013-05-26-20.52#include <stdio.h>int day[2][13] = {{0,31,28,31,30,31,30,31,31,30,31,30,31},{0,31,29,31,30,31,30,31,31,30,31,30,31}};int judge(int y){ if (y%4 == 0 && y % 100 != 0 || y % 400 == 0) return 1;
Time of Update: 2018-12-05
Problem CA mid-summer night’s dreamInput:standard inputOutput:standard output This is year 2200AD. Science has progressed a lot in two hundred years. Two hundred years is mentioned here because this problem is being sent back to 2000AD with the help
Time of Update: 2018-12-05
連結:http://poj.org/problem?id=2528題目大意:在長度為10000000的牆上貼海報,海報的高度和牆的高度一樣,不同的海報覆蓋在不同的地區。如果有重疊位置,則後面貼的海報會把之前貼的海報覆蓋掉。問最終有幾張海報可以看到?分析與總結:又一道成段更新的線段樹染色問題來嘍。1. 用map來離散化,結果TLE了。。。然後改用數組存,用二分查詢位置,63MS過了,看來以後都不要再用map了。2.
Time of Update: 2018-12-05
題目連結:http://poj.org/problem?id=1976題目大意:某個車站有N個火車車廂,編號為1~N,每個車廂上有xi個人。這個車站還有三個火車頭,他們能拉最多m個車廂(m<=N/3),而且這m個車廂的編號要連續的。問這三個火車頭最多能拉多少個人。思路:因為m<=N/3, 所以按照貪心的思想,為了拉更多的人,每個火車頭一定是要拉m個連續的車廂。然後,為了求某段連續的車廂共有多少人,可以首碼和預先處理, 某一段和=sum[ i ] - sum[ i-m].f[i][j]
Time of Update: 2018-12-05
題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=113&page=show_problem&problem=1768原題:A grid that wraps both horizontally and vertically is called a torus. Given a torus where each cell contains an
Time of Update: 2018-12-05
連結:http://acm.hdu.edu.cn/showproblem.php?pid=1829原題:Problem DescriptionBackground Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs
Time of Update: 2018-12-05
連結:http://acm.hdu.edu.cn/showproblem.php?pid=2544題目:Problem
Time of Update: 2018-12-05
點擊開啟連結題目大意:給一個字串,每次可以刪除一個可不連續迴文子串,問最少刪幾次可以全部刪完。思路:因為字串長度最大16,所以可用二進位狀態表示, 1表示選取這個字元,0不選,組成一個子串。先預先處理出所有狀態,看這個狀態是不是迴文。f[i]表示狀態i最少幾次可以全刪完, 初始化f數組INFf[i] = min{f[i], f[s]+1 } s是i的子集。 #include<iostream>#include<cstdio>#include<cstring>#
Time of Update: 2018-12-05
連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=113&page=show_problem&problem=44原題:BackgroundA problem that is simple to solve in one dimension is often much more difficult to solve in more than one
Time of Update: 2018-12-05
101 - The Blocks Problem6786419.16%14194題目連結:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=103&page=show_problem&problem=37題目類型: 資料結構, 二叉樹題意: 有N個位置, 編號為 0~N-1, 初始下,各個位置上放置這和位置編號相同的磚塊,即磚塊1,磚塊2……磚塊N-1。
Time of Update: 2018-12-05
演算法博大精深,我什麼時候才能自己想出這種好辦法呢???!!!#include<cstdio>#include<iostream>#include<cstring>using namespace std;int num[500001];int main(){ //freopen("in.txt","r",stdin); int n,a,b; while(scanf("%d",&n)!=EOF&&n) {
Time of Update: 2018-12-05
題目連結:POJ : http://poj.org/problem?id=1961HDU : http://acm.hdu.edu.cn/showproblem.php?pid=1358ZOJ