kZjPBD.jpg
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: Given a rooted tree ( the root is node 11 ) of NN nodes. Initially, each node has zero point. Then, you need to handle QQ operations. There're two typ 阅读全文
posted @ 2019-07-13 12:49 Through_The_Night 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 给出一个长为 n​n​ 的数列,以及 n​n​ 个操作,操作涉及区间加法,询问区间内小于某个值 x​x​ 的前驱(比其小的最大元素)。 Input 第一行输入一个数字 n,1≤n≤100000n,1≤n≤100000。 第二行输入 nn 个非负整数,第 ii个数字为 ai(0≤ai≤109)ai(0 阅读全文
posted @ 2019-07-12 22:19 Through_The_Night 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 一、从应对考试角度来(在最快的时间内得出最准确的答案) 首先我们应该知道,要想将中缀转化为后缀,需要借助堆栈实现。(不准备画图了,画图有点浪费时间)我会用最简单明了的语言使读者弄懂。[举个例子吧:比如将:2*(9+6/3-5)+4转化为后缀表达式2 9 6 3 / +5 - * 4 + ] 1、任何 阅读全文
posted @ 2019-07-12 18:57 Through_The_Night 阅读(631) 评论(0) 推荐(0) 编辑
摘要: "Oh, There is a bipartite graph.""Make it Fantastic." X wants to check whether a bipartite graph is a fantastic graph. He has two fantastic numbers, a 阅读全文
posted @ 2019-07-12 16:38 Through_The_Night 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题意: 给n个点,及m根pipe,每根pipe用来流躺液体的,单向的,每时每刻每根pipe流进来的物质要等于流出去的物质,要使得m条pipe组成一个循环体,里面流躺物质。 并且满足每根pipe一定的流量限制,范围为[Li,Ri].即要满足每时刻流进来的不能超过Ri(最大流问题),同时最小不能低于Li 阅读全文
posted @ 2019-07-12 14:29 Through_The_Night 阅读(125) 评论(0) 推荐(0) 编辑
摘要: A sequence of integer \lbrace a_n \rbrace{an​} can be expressed as: \displaystyle a_n = \left\{ \begin{array}{lr} 0, & n=0\\ 2, & n=1\\ \frac{3a_{n-1} 阅读全文
posted @ 2019-07-11 19:19 Through_The_Night 阅读(266) 评论(0) 推荐(0) 编辑
摘要: One day in the jail, F·F invites Jolyne Kujo (JOJO in brief) to play tennis with her. However, Pucci the father somehow knows it and wants to stop her 阅读全文
posted @ 2019-07-11 14:32 Through_The_Night 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 。。 阅读全文
posted @ 2019-07-11 14:03 Through_The_Night 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 题目背景 在一个叫做Travian的世界里,生活着各个大大小小的部落。其中最为强大的是罗马、高卢和日耳曼。他们之间为了争夺资源和土地,进行了无数次的战斗。期间诞生了众多家喻户晓的英雄人物,也留下了许多可歌可泣的动人故事。 其中,在大大小小的部落之间,会有一些道路相连,这些道路是Travian世界里的 阅读全文
posted @ 2019-07-10 22:09 Through_The_Night 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小强要在NNN个孤立的星球上建立起一套通信系统。这套通信系统就是连接NNN个点的一个树。 这个树的边是一条一条添加上去的。在某个时刻,一条边的负载就是它所在的当前能够 联通的树上路过它的简单路径的数量。 例如,在上图中,现在一共有了555条边。其中,(3,8)(3,8)(3,8)这条边的负 阅读全文
posted @ 2019-07-10 11:31 Through_The_Night 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页