CSU ACM寒假集训选拔 入门题 仅选择部分有价值的题 J( "2165" ): 时间旅行 Description 假设 Bobo 位于时间轴(数轴)上 t 0 点,他要使用时间机器回到区间 (0, h ] 中。 当 Bobo 位于时间轴上 t 点,同时时间机器有 c 单位燃料时,他可以选择一个满 ...
分类:
其他好文 时间:
2019-02-01 20:41:49
阅读次数:
276
csu 2018年11月月赛Round2 div1 题解 A(2191):Wells的积木游戏 Description Wells有一堆N个积木,标号1~N,每个标号只出现一次 由于Wells是手残党,所以每次只能取出一块积木放在积木顶层 现在Wells想知道至少需要操作几次可以把积木堆成从顶至底标 ...
分类:
其他好文 时间:
2019-02-01 19:50:45
阅读次数:
151
csu 2018年11月月赛Round2 div2 题解 A(2193):昆虫繁殖 Description 科学家在热带森林中发现了一种特殊的昆虫,这种昆虫的繁殖能力很强。每对成虫过x个月产y对卵,每对卵要过两个月长成成虫。假设每个成虫不死,第一个月只有一对成虫,且卵长成成虫后的第一个月不产卵(过X ...
分类:
其他好文 时间:
2019-02-01 19:48:56
阅读次数:
209
Description Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N standin ...
分类:
其他好文 时间:
2019-01-28 14:06:25
阅读次数:
135
业务场景说明: 消息队列在大型电子商务类网站,如京东、淘宝、去哪儿等网站有着深入的应用, 队列的主要作用是消除高并发访问高峰,加快网站的响应速度。 在不使用消息队列的情况下,用户的请求数据直接写入数据库,在高并发的情况下,会对数据库造成巨大的压力,同时也使得系统响应延迟加剧。 在使用队列后,用户的请 ...
分类:
编程语言 时间:
2019-01-28 12:04:24
阅读次数:
178
Description Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She does not want to get to her old home ...
分类:
数据库 时间:
2019-01-28 00:59:48
阅读次数:
166
题目链接:Kilani and the Game 题目原文 Kilani is playing a game with his friends. This game can be represented as a grid of size 𝑛×𝑚, where each cell is eith ...
分类:
其他好文 时间:
2019-01-28 00:41:19
阅读次数:
352
Installing Apps Kattis - installingapps Sandra recently bought her first smart phone. One of her friends suggested a long list of applications (more c ...
分类:
移动开发 时间:
2019-01-26 21:42:09
阅读次数:
169
Kilani is playing a game with his friends. This game can be represented as a grid of size n×mn×m, where each cell is either empty or blocked, and ever ...
分类:
其他好文 时间:
2019-01-26 11:09:06
阅读次数:
202
题目链接:https://cn.vjudge.net/contest/280949#problem/F 题目大意:给你n个人,然后给你m个关系,每个关系输入t1, t2 .代表t1和t2是朋友关系(双向关系)。然后输入一个k,代表两个人是亲密的朋友关系的话,就至少有k个共同的朋友,然后问你题目中这样 ...
分类:
其他好文 时间:
2019-01-24 20:09:04
阅读次数:
239