uva 580 Critical Mass(遞推)
#include#include#include#includeusing namespace std;typedef unsigned long long u
LeetCode 86 Partition List
Given a linked list and a value x, partition it such that all nodes less than x
LeetCode Contains Duplicate III
LeetCode Contains Duplicate III題目思路我的方法是先用一個結構體,存下每個數字的值和其原坐標;然後根據值大小排序;接著遍歷每一個數
leetcode_PermutationSequence
題目描述(Permutation Sequence) The set [1,2,3,…,n] contains a total of n! uni
Codeforces Round #306 (Div. 2) A
A. Two Substrings time limit per test 2 seconds memory limit per test 256 megaby
HDU 1051 Wooden Sticks (貪心)
Wooden SticksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32
hdu 5265 pog loves szh II
#include #include #include using namespace std;const int maxn=100000+5;int