
STL
文章平均质量分 51
WeSeewe_Wy
这个作者很懒,什么都没留下…
展开
-
POJ - 3096 Surprising Strings
DescriptionThe D-pairs of a string of letters are the ordered pairs of letters that are distance D from each other. A string is D-unique if all of its D-pairs are different. A string is surprising if i原创 2017-08-24 17:15:02 · 337 阅读 · 0 评论 -
HDU 4841 圆桌问题 (vector模拟)
Description 圆桌上围坐着2n个人。其中n个人是好人,另外n个人是坏人。如果从第一个人开始数数,数到第m个人,则立即处死该人;然后从被处死的人之后开始数数,再将数到的第m个人处死……依此方法不断处死围坐在圆桌上的人。试问预先应如何安排这些好人与坏人的座位,能使得在处死n个人之后,圆桌上围坐的剩余的n个人全是好人。 Input多组数据,每组数据输入:好人和坏人的人数n(<=32767)、步原创 2017-08-24 18:16:39 · 445 阅读 · 0 评论 -
CSU 1826 Languages map和stringstream
/*主要是学会map和stringstream以及getline的使用 #include #include #include #include #include #include using namespace std; int main() { #ifdef _debug freopen("data.in", "r", stdin); #endif int n; cin >> n;原创 2017-08-25 09:21:34 · 328 阅读 · 0 评论 -
HDU 1896 Stones priority_queue
Description Because of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a little tired, so Sempr always play some gam原创 2017-08-25 11:11:21 · 266 阅读 · 0 评论 -
CodeForces - 831C Jury Marks binary_search
DescriptionPolycarp watched TV-show where k jury members one by one rated a participant by adding him a certain number of points (may be negative, i. e. points were subtracted). Initially the participa原创 2017-08-25 11:41:52 · 367 阅读 · 0 评论