摘要:
rope是什么?STL的内置的可持久化的数组。其最为方便的就是可以O1复制原来的数组。事实上rope的内置实现也是平衡树,由于只需要复制根结点,O1可以做到复制历史版本。 然而这个东西常数特大,不开O2可能会被卡 科普一下rope基本操作(百度貌似有点难找): 多数时候定义rope用指针(方便可持久 阅读全文
摘要:
D. Robin Hood time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Robin Hood time limit pe 阅读全文
摘要:
Median Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 11599 Accepted: 4112 Description Given N numbers, X1, X2, ... , XN, let us calculate 阅读全文
摘要:
C. Vasya and Robot time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Vasya and Robot tim 阅读全文
摘要:
E. Andrew and Taxi time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Andrew and Taxi ti 阅读全文
摘要:
入口: https://cn.vjudge.net/problem/UVA-1335 【题意】 有n个人为成一个圈,其中第i个人想要r[i]种不同的礼物,相邻的两个人可以聊天,炫耀自己的礼物。如果两个相邻的人拥有同一种礼物,则双方都会很不高兴,问最少需要多少种不同的礼物才能满足所有人的需求,假设每种 阅读全文
摘要:
紫书习题: https://cn.vjudge.net/article/45蓝书习题: https://cn.vjudge.net/article/61 https://cn.vjudge.net/article/755白书习题: https://cn.vjudge.net/article/426俞 阅读全文
摘要:
BaoBao and DreamGrid are playing the game Plants vs. Zombies. In the game, DreamGrid grows plants to defend his garden against BaoBao's zombies. There 阅读全文
摘要:
Monthly Expense Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 36628 Accepted: 13620 Description Farmer John is an astounding accounting w 阅读全文
摘要:
Can you solve this equation? Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 27728 Accepted Subm 阅读全文
摘要:
Drying Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 24089 Accepted: 6031 Description It is very hard to wash and especially to dry cloth 阅读全文
摘要:
The Frog's Games Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 10307 Accepted Submission(s): 4 阅读全文
摘要:
Aggressive cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 22674 Accepted: 10636 Description Farmer John has built a new long barn, wi 阅读全文
摘要:
River Hopscotch Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 21939 Accepted: 9081 Description Every year the cows hold an event featurin 阅读全文
摘要:
738. [网络流24题] 数字梯形 ★★★ 输入文件:digit.in 输出文件:digit.out 简单对比 时间限制:1 s 内存限制:128 MB 738. [网络流24题] 数字梯形 «问题描述: 给定一个由n 行数字组成的数字梯形如下图所示。梯形的第一行有m 个数字。从梯形 的顶部的m 阅读全文