BZOJ 2916([Poi1997]Monochromatic Triangles-容斥+組合數學)
2916: [Poi1997]Monochromatic Triangles Time Limit: 1 Sec Memory Limit:
[leetcode]Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecuti
UVA 1160 - X-Plosives 即LA3644 並查集判斷是否存在環
X-Plosives A secret service developed a new kind ofexplosive that atta
C++ Preprosessor import
#import Attributes Provides links to attributes used with the #import directi
LA 3027 Corporative Network 並查集記錄點到根的距離
Corporative Network Time Limit: 3000MS Memory Limit: Unknown 
Application.mk中APP_ABI 的含義
我們在編寫JNI代碼時有一個可選的文件Application.mk ,這個文件你可以不創建,但是有時候是有必要寫一個這樣的文件的。 Application
c/c++ 算法之快速排序法 冒泡排序法,選擇排序法,插入排序法
本文詳細敘述和實現了快速排序算法,冒泡排序 選擇排序 插入排序比較簡單,原理在這裡不再詳述,直接用代碼進行了實現。 快速排序法(quicksort)是目前
codeforces 6A. Triangle
A. Triangle time limit per test 2 seconds memory limit per test 64 megabytes
Codeforces Round #189 (Div. 2)
第一題:基本題,判斷mod 1000,mod 100.,mod 10是不是等於144、14、1,直到為0 代碼如下: [cpp] #incl