原创 牛客網__金幣餡餅

鏈接:https://ac.nowcoder.com/acm/contest/984/K 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 32768K,其他語言65536K 64bit IO Format

原创 牛客網__隨機數

鏈接:https://ac.nowcoder.com/acm/contest/984/F 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 32768K,其他語言65536K 64bit IO Format

原创 HDU - 6231_K-th Number

題面 Alice are given an array A[1…N] with N numbers. Now Alice want to build an array B by a parameter K as followi

原创 2018-german-collegiate-programming-contest-gcpc-18-en-Problem M: Mountaineers

  The Chilean Andes have become increasingly popular as a destination for backpacking and hiking. Many parts of the

原创 asia-yokohama-regional-contest-2018的K題題解

題意: A和B在打牌,B足夠聰明,他能知道A的出牌順序,現在決定B的出牌順序,使得B出的牌能最多的比A出的牌大,如果有多個方案,則輸出最大字典序 題解 首先我們先求出最多能幾張牌大於A的出牌,然後從A的第一張牌開始儘可能的用

原创 牛客多校__Explorer

https://ac.nowcoder.com/acm/contest/888/E 題意:給你一個無向圖,其中每條邊都有限制的大小區間可以通過,詢問從1到n總共有多少個數字可以通過(即從1到n) 題解:由於m的範圍很大,所以我不能單純的跑

原创 牛客多校__Find the median(一顆線段樹處理區間和點)

https://ac.nowcoder.com/acm/contest/887/E 題意:根據所給的條件,先遞推的算出n個操作的區間【l,r】,然後按順序將l,l+1....r加入無限長數組內,然後對於每次求一箇中位數,對於偶數的中位數是

原创 牛客網__Wonderprime Brands

鏈接:https://ac.nowcoder.com/acm/contest/984/G 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 32768K,其他語言65536K 64bit IO Format

原创 hdu6556__The World

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 215    Accep

原创 牛客網__Protecting the Flowers

鏈接:https://ac.nowcoder.com/acm/contest/984/I 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 32768K,其他語言65536K 64bit IO Format

原创 Pertozavodsk Winter Training Camp 2016-Problem K. Two Strings

Time limit: 2.5 seconds Memory limit: 768 mebibytes You are given two strings S = S0S_{0}S0​S1S_{1}S1​ · · · S∣S∣−

原创 Pertozavodsk Winter Training Camp 2016-Problem J. Sort It!

Time limit: 1.5 seconds Memory limit: 512 mebibytes You are given a permutation of length n: p1p_{1}p1​, p2p_{2}p2​

原创 牛客__小H和遺蹟

鏈接:https://ac.nowcoder.com/acm/problem/15160 來源:牛客網   時間限制:C/C++ 1秒,其他語言2秒 空間限制:C/C++ 262144K,其他語言524288K 64bit IO Form

原创 sort自定義排序注意

https://blog.csdn.net/weixin_33766168/article/details/93787201 sort寫自定義函數時要注意不能恆爲true,爲runtimeerror

原创 2019寧夏網絡賽__E - 2-3-4 Tree

In computer science, a 2-3-4 tree, as a search tree, is a self-balancing data structure that is commonly used to implem