原创 Codeforces Round #356 C. Bear and Prime 100

C. Bear and Prime 100 time limit per test 1 second memory limit per test 256 megabytes input standard input o

原创 CSU 1697 Surface Area of Cubes 思維題

  題意: 用1*1*1的小立方體疊成一個A*B*C立方體,然後給出N個小立方體的中心(x,y,z)然後依次拿走該立方體,在拿走N個立方體後求剩下立方結合體的表面積。 思路: 首先算出當前立方體的表面積記爲sum,然後判斷現在要拿走的

原创 POJ 3267 The Cow Lexicon 基礎DP

The Cow Lexicon Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 9199   Accepted: 4369 Description Fe

原创 POJ 1836 Alignment 變形的LIS

Alignment Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 15323   Accepted: 4974 Description In the

原创 FZU2081 買票三人行 隊列模擬

 Problem 2081 買票三人行 Accept: 109    Submit: 391 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Descripti

原创 POJ 1019 數論基礎題

Number Sequence Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 37350   Accepted: 10780 Description

原创 Codeforces Round #346 (Div. 2) B

B. Qualifying Contest time limit per test 1 second memory limit per test 256 megabytes input standard input o

原创 Codeforces 676C Vasya and String 尺取法

C. Vasya and String time limit per test 1 second memory limit per test 256 megabytes input standard input outp

原创 Codeforces Round #346 (Div. 2) C模擬

C. Tanya and Toys time limit per test 1 second memory limit per test 256 megabytes input standard input outpu

原创 POJ 1276 Cash Machine 多重揹包O(n*m)算法

Cash Machine Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 31407   Accepted: 11288 Description A B

原创 Codeforces Round #346 (Div. 2) A

A. Round House time limit per test 1 second memory limit per test 256 megabytes input standard input output s

原创 POJ 1837 Balance 基礎DP

Balance Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 12659   Accepted: 7935 Description Gigel has a

原创 The 13th Zhejiang Provincial Collegiate Programming Contest - I People Counting

People Counting Time Limit: 2 Seconds      Memory Limit: 65536 KB In a BG (dinner gathering) for ZJU ICPC team, the c

原创 FZU Problem 2227 郵票

 Problem 2227 郵票 Accept: 30    Submit: 68 Time Limit: 1000 mSec    Memory Limit : 32768 KB  Problem Description 一

原创 二分查找,你真的掌握了嗎?

博主地址: http://blog.csdn.net/walkinginthewind/article/details/8937978 二分查找,最基本的算法之一,也是面試中常被考察的重點,因爲基本的算法最能反映出一個人的基礎是否