原题: Alice and Bob have candy bars of different sizes: A[i] is the size of the i-th bar of candy that Alice has, and B[j] is the size of the j-th bar o ...
分类:
其他好文 时间:
2019-02-21 17:36:41
阅读次数:
162
叶落归根(hometown) 题目描述 叶落归根——树叶从树根生发出来,凋落后最终还是回到树根。比喻事物总有一定的归宿。接下来是题目。 给定一个n个点的有向图G(点的编号为1~n),一开始落叶(仅作为一个代号,你也可以当成是Alice、Bob、甲乙丙丁戊己庚辛壬癸…)会在G的某个点s上。总共有t个单 ...
分类:
其他好文 时间:
2019-02-21 09:21:29
阅读次数:
180
Chinese people think of '8' as the lucky digit. Bob also likes digit '8'. Moreover, Bob has his own lucky number L. Now he wants to construct his luck ...
分类:
其他好文 时间:
2019-02-16 19:27:03
阅读次数:
197
题目描述 Alice有n个字符串S_1,S_2...S_n,Bob有一个字符串集合T,一开始集合是空的。 接下来会发生q个操作,操作有两种形式: “1 P”,Bob往自己的集合里添加了一个字符串P。 “2 x”,Alice询问Bob,集合T中有多少个字符串包含串S_x。(我们称串A包含串B,当且仅当 ...
分类:
其他好文 时间:
2019-02-13 21:09:29
阅读次数:
165
飞行路线(luoguP4568) Description Alice和Bob现在要乘飞机旅行,他们选择了一家相对便宜的航空公司。该航空公司一共在n个城市设有业务,设这些城市分别标记为0到n?1,一共有m种航线,每种航线连接两个城市,并且航线有一定的价格。 Alice和Bob现在要从一个城市沿着航线到 ...
分类:
其他好文 时间:
2019-02-11 20:06:59
阅读次数:
322
Farmer John has received a noise complaint from his neighbor, Farmer Bob, stating that his cows are making too much noise. FJ's N cows (1 <= N <= 10,0 ...
分类:
其他好文 时间:
2019-02-09 16:28:48
阅读次数:
192
Description Alice、Bob和Cynthia总是为他们之间混乱的债务而烦恼,终于有一天,他们决定坐下来一起解决这个问题。不过,鉴别钞票的真伪是一件很麻烦的事情,于是他们决定要在清还债务的时候尽可能少的交换现金。比如说,Alice欠Bob 10元,而Cynthia和他俩互不相欠。现在假设 ...
分类:
其他好文 时间:
2019-02-08 21:25:43
阅读次数:
165
第 1 段 1.Listen to a conversation between a student and his English professor. 请听一段学生与他的英文教授的对话。 第 2 段 1.Hi, Bob. How is it going? Are you enjoying the... ...
分类:
其他好文 时间:
2019-02-07 22:08:50
阅读次数:
234
Diffie Hellman密钥交换 加密过程 有全局两个公开的参数: p,g p是一个大素数,g是p的一个本原根 现在有Alice和Bob两个人要交换密钥。 ① Alice选定一个小于p的数a作为Alice私钥,并且计算Alice的公钥A=g^a mod p,公开Alice的公钥A ② 与此同时B ...
分类:
其他好文 时间:
2019-02-06 22:25:12
阅读次数:
221
Alice and Bob are very smart guys and they like to play all kinds of games in their spare time. The most amazing thing is that they always find the be ...
分类:
其他好文 时间:
2019-02-04 22:06:14
阅读次数:
232