点击打开链接B. Interesting drinktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVasiliy likes to rest afte
原创
2022-09-07 16:38:26
17阅读
time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasiliy likes to rest after a hard work,
转载
2018-10-04 22:46:00
163阅读
题干: 瓦西里喜欢在努力工作后休息,
原创
2022-06-15 16:09:11
68阅读
题意:给定 n 个数,然后有 m 个询问,每个询问一个数,问你小于等于这个数的数有多少个。 析:其实很简单么,先排序,然后十分查找,so easy。 代码如下:
转载
2016-08-12 22:58:00
92阅读
2评论
题意:不同奶茶店里同样的奶茶价格不同,问在当天Yuki持有的零钱能在几家店购买 思路:对价格数组排序,先优先判断是否会比较最大值和最小值,然后二分查找 #include<bits/stdc++.h> using namespace std; int main() { int n, q, m, a[1
转载
2020-07-14 19:14:00
32阅读
2评论
题目链接: B. Interesting drink 题意: 给出第i个商店的价钱为x[i],现在询问mi能在多少个地方买酒; 思路: sort后再二分; AC代码:
转载
2016-08-12 10:24:00
55阅读
思路:二分upper_bound就好了...#includeusing namespace std;const int maxn = 100000+5;int a[maxn];int main(){ int n; scanf("%d",&n); for(int i = 0;i<n;i++) scanf("%d",&a[i]); sort(a,a
原创
2023-06-09 18:34:53
57阅读
目录一,树状数组二,基本操作1,单点更新2,区间查询三,OJ实战CodeForces 706B Interesting drinkCSU 1770 按钮控制彩灯实验HDU 1166 敌兵布阵POJ 2309 BSTPOJ 2352 HDU 1541 Stars四,二维树状数组1,基
原创
2021-12-27 10:31:08
229阅读
B. Interestinndard outputVasiliy likes to rest after a hard wor
原创
2022-08-12 09:46:46
155阅读
Drink ItProblem Description来来来,做道题,一起防老年痴呆。啤酒2元一瓶,4
原创
2016-04-19 16:45:47
21阅读
解题报告:这题看着别人板子写的,竟然是线段树,真没看出来Orz,思路就是我们通过m次操作,建立线段树,并且每次给区间l,r 或上一个d值,最后检查每次询问的范围内想与的值还是不是原来的值,如果不是就输出no#include<iostream>#include<cstring>#include<vector>#include<algorithm>#include<map>#include<set>#include<.
原创
2021-07-09 14:05:56
144阅读
What would you like to drink?I'll just have water.I don't feel like drinking anything. Would you like to dance?I don't like dancing.Thanks you very much. What would you like to eat?Not
原创
2015-03-06 17:28:54
432阅读
For the health’s sake, Mr. Doraemonok drinks one and only one package of pure milk every day. However, Mr. Doraemonok will never drink sour milk which
原创
2022-01-11 13:42:37
75阅读
##Today's topic ###TELLING AN INTERESTING STORY What's the difference between 'excited' and 'exciting'? 'Bored' and 'boring'? Use these words to tell ...
转载
2021-05-27 00:22:00
125阅读
2评论
牛客多校: https://ac.nowcoder.com/acm/contest/5673/I 题意:每次从两个数中选一个,也可以不选,但是选不能选之前重复的。做法:同一行连一个边,然后一个图中有环的贡献就是这个图的大小;没环就是大小-1,用并查集维护就可以 #include <bits/stdc
转载
2020-08-03 22:15:00
72阅读
2评论
spark内存理解JVM内存管理整体结构与代码剖析StorageMemoryPoolExecutionMemoryPool内存角度看划分堆内内存堆外内存动态占用机制 引言很多人对spark初步理解为是基于内存的,但这种说法不够准确,其实应该称spark是充分利用了内存而已,在给定资源规模情况下,通过对内存更细致的划分、动态的调整,来达到更快的运行效率;在编排作业时,你要清楚最多能给你多少内存空间
转载
2024-02-19 14:43:30
49阅读
Discription Nikolay and Asya investigate integers together in their spare time. Nikolay thinks an integer is interesting if it is a prime number. Howe
转载
2018-03-31 18:54:00
57阅读
2评论
点击此处就可以传送 hdu 2814 题目大意:就是给你两个函数,一个是F(n) = F(n-1) + F(n-2), F(0) = 0, F(1) = 1; 还有一个是 G(n) = G(n-1)^F(a^b); G(1) = F(a^b); 求G(n) % c; 范围:A, B, N, C (1
转载
2017-05-07 12:07:00
33阅读
2评论
ProblemThis year at Monsters University it is decided to arrange Scare Games. At the Games al
原创
2023-02-19 09:24:45
63阅读
转载
2013-08-08 13:45:00
67阅读
2评论