原创 【noip2015】【搜索】鬥地主
鬥地主 牛牛最近迷上了一種叫鬥地主的撲克遊戲。鬥地主是一種使用黑桃、紅心、梅花、 方片的 A 到 K 加上大小王的共 54 張牌來進行的撲克牌遊戲。在鬥地主中,牌的大小關 系根據牌的數碼錶示如下: 3<4<5<6<7<8
原创 【Codeforces708C】【樹形dp】【貪心】Centroids
Centroids Time Limit: 4000MS Memory Limit: 524288KB 64bit IO Format: %I64d & %I64u Description Tree is a
原创 【poj1151】【離散化】Atlantis
Atlantis Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 21743 Accepted: 8184 Descriptio
原创 【Codeforces 578B】【貪心】"Or" Game
“Or” Game Time Limit: 2000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Description You are g
原创 【Codeforces 645E】【貪心】Intellectual Inquiry
Intellectual Inquiry Time Limit: 2000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Descriptio
原创 【poj2352】【樹狀數組】Stars
Stars Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 43467 Accepted: 18915 Description
原创 【Codeforces 549G】【貪心】Happy Line
Happy Line Time Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Description Do you l
原创 【poj2528】【離散線段樹】【動態建線段樹】【漂浮法】Mayor's posters
Mayor’s posters Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 59730 Accepted: 17309 De
原创 【Codeforces403B】【貪心】Upgrading Array
Upgrading Array Time Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Description You
原创 【noip2011】【數學】計算係數 逆元求組合數
描述 給定一個多項式(ax + by)^k,請求出多項式展開後x^n * y^m項的係數。 輸入格式 共一行,包含5個整數,分別爲a,b,k,n,m,每兩個整數之間用一個空格隔開。 輸出格式 輸出共1行,包含一個整數,表示所求的
原创 【noip2008】【普及組】立體圖
題目圖太多不好複製,自己去找了,反正noip到處都有。 這裏發一道普及組模擬水題,主要是爲了後面的一道題,現在這裏mark一下。 直接放代碼了: #include<iostream> #include<cstdio> #inc
原创 【Codeforces 605A】【貪心】Sorting Railway Cars
Sorting Railway Cars Time Limit: 2000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Descriptio
原创 【CodeForces 500B】【貪心】New Year Permutation
New Year Permutation Time Limit: 2000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Descriptio
原创 【hdu4325】【線段樹】Flowers 動態建樹
Flowers Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Problem Description As
原创 【Codeforces529B】【貪心】Group Photo 2
Group Photo 2 Time Limit: 2000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64u Description Many