首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 】 求导

    Sample Input 3 2 10 3.590 2.719 8.1991 7.189 Sample Output Case 1: 4.513804324 Case 2: 2.2268848896 Case 3: 33.412886 水题没得说。

    21010编辑于 2025-08-26
  • 来自专栏AngelNI

    19.11.24

    For example, he can change array [3,−1,−4,1][3,−1,−4,1] to an array [−4,−1,3,1][−4,−1,3,1] after applying this operation to elements with indices i=1i=1 and i=3i=3. Examples Input 4 2 2 2 2 Output -3 -3 -3 -3 Input 1 0 Output 0 Input 3 -3 -3 2 Output -3 -3 2 #include Examples Input 4 6 1 2 1 3 1 4 2 3 2 4 3 4 Output NO Input 5 4 1 2 2 3 3 4 4 5 Output YES Input 300000 Vlad start at the stations (1,3)(1,3).

    58610发布于 2020-04-16
  • 来自专栏AngelNI

    19.11.0310

    0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 1 0 Sample Output (0, 0) (1, 0) (2, 0) (2, 1) (2, 2) (2, 3) (2, 4) (3, 4) (4, 4) #include<iostream> #include<cstdio> #include<cstring> #include<queue> using namespace His company records the budgets using numbers rounded to 3 digits after the decimal place. All decimals are rounded to 3 digits. Output Print the difference rounded to 3 digits.. Sample Input 1 1 1 1 1 2 2 1 3 Sample Output 1 0 这道题不难,但是读懂题很重要。

    52710发布于 2020-04-16
  • 来自专栏饶文津的专栏

    1

    1 A.LightOJ 1080 Binary Simulation 操作I i j:翻转i到j之间的01比特(0变成1,1变成0) 操作Q i:询问第i位比特是什么 //线段树 #include rt){ if(l <= L && R <= r){ return tr[rt]; } int mid = L+R >> 1; int ans = 0x3f3f3f3f

    52630发布于 2020-06-02
  • 来自专栏AngelNI

    19.11.17

    (2,3). Sample Input 2 4 5 13 8 1000000000 Sample Output 2 1 Sample Input 3 3 1000000000 1000000000 1000000000 Buy the 2-nd item for 3 yen with 2 tickets. Buy the 3-rd item for 4 yen with 1 ticket. Sample Input 2 4 4 1 9 3 5 Sample Output 2 6 Sample Input 3 1 100000 1000000000 Sample Output 3 0 We Sample Input 3 4 1 2 3 4 Sample Output 3 0 AC #include<iostream> using namespace std; int a[100000009

    48820发布于 2020-04-16
  • 来自专栏SQL 周周练

    SQL 】爬取短视频发现数据缺失,如何用 SQL 填充

    本文是第 5 篇,也是【SQL 】系列的第 4 篇。该系列是挑选或自创具有一些难度的 SQL 题目,一至少更新一篇。 请你利用 SQL 将这些数据补齐,即“插值”。 比如 2 个有效的点赞量中间缺少了 3 天的数据,如果这 3 天的数据都用这 2 个有效值的平均值来填充,则相当于这几天的点赞数没有变化,这逻辑不太现实。 只不过 $\ln(x)$ 服从正态分布,取 $\mu - 3\sigma, \mu + 3\sigma$ ;那么 $x$ 就应该取 $e^{\mu-3\sigma}, e^{\mu+3\sigma}$, 实际工作中,是应该用数据来拟合去推算参数的取值3.定义随机缺失数据的标识,注意点赞量是整数,四舍五入后转为整数。

    56220编辑于 2025-05-07
  • 来自专栏SQL 周周练

    SQL】:利用行车轨迹分析犯罪分子作案地点

    本文是第 7 篇,也是【SQL 】系列的第 6 篇。该系列是挑选或自创具有一些难度的 SQL 题目,一至少更新一篇。 3.留存率拟合、预测、建模4.学习 AB 实验、复杂实验设计等5.自动化机器学习、自动化特征工程6.因果推断学习……欢迎关注,一起学习。 就需要先求出来速度3.摄像头拍到车,并给出坐标和时刻 —— 速度就是距离除以时间差,而距离需要用坐标来计算。 lastLagtitude", "lastLongtitude"]] = df.groupby(by=["licencePlate"])[ ["lagtitude", "longtitude"]].shift(1)3. when speed is null then 0 -- 起始点当成普通点 else -1 end) as calc_case from calc_speed_table)……3.

    23600编辑于 2025-05-17
  • 来自专栏SQL 周周练

    SQL】给你无酸纸、变色油墨,你能伪造多少美金?

    本文是第 2 篇,也是【SQL 】系列的第 2 篇。该系列是挑选或自创具有一些难度的 SQL 题目,一至少更新一篇。 3.留存率拟合、预测、建模4.学习 AB 实验、复杂实验设计等5.自动化机器学习、自动化特征工程6.因果推断学习7. optically_variable_ink_supply_weight.sum()security_thread_supply_weight /= security_thread_supply_weight.sum()3. mg)",        security_thread_supply int comment "安全线供应量"    )    comment "伪钞集团每天供应的伪钞原材料数量 | 文章编号:2c3d2561 四、SQL 解答思路在第二节已经说明,下面是代码,细节参见注释。

    32710编辑于 2025-04-27
  • 】 数学水题

    The snail can climb 3 feet while the sun is up, but slides down 1 foot at night while sleeping. snail has a fatigue factor of 10%, which means that on each successive day the snail climbs 10% * 3 Day Initial Height Distance Climbed Height After Climbing Height After Sliding 1 0 3 3 2 2 2 2.7 4.7 3.7 3 3.7 2.4 6.1 - Your job is to solve this problem in general. Sample Input 6 3 1 10 10 2 1 50 50 5 3 14 50 6 4 1 50 6 3 1 1 1 1 1 0 0 0 0 Sample Output success on

    24910编辑于 2025-08-26
  • 】 物理题

    Output For each case, output Q in one line, accurate up to 3 decimal places. double t,t1,t2; //总时间,上升时间,下落时间 double Q; while (~scanf ("%lf%lf%lf",&v,&m,&a)) { h1=0.5; h2=3; =h1) { t1=vy/g; h2=h2+(vy*vy/2/g); t2=sqrt(2*h2/g); t=t1+t2; Q=t*vx; printf ("%.3lf =3.5; t1=(vy-vv)/g; t2=(-2*vv+sqrt(4*vv*vv+8*g*h2))/2/g; t=t1+t2; Q=t*vx; printf ("%.3lf

    17810编辑于 2025-08-26
  • 来自专栏SQL 周周练

    SQL】一句 SQL 如何帮助 5 个人买到电影院最好的座位?

    本文是第 3 篇,也是【SQL 】系列的第 3 篇。该系列是挑选或自创具有一些难度的 SQL 题目,一至少更新一篇。 3.留存率拟合、预测、建模4.学习 AB 实验、复杂实验设计等5.自动化机器学习、自动化特征工程6.因果推断学习7. 第 3 期题目题目来源:改进的题目,增加了电影院最优选座的逻辑一、题目介绍看到这个题目,有同学可能会吐槽:你小子拉了,第 3 期就出现常见题目。 这里我解释一下,【SQL 】系列的确是想输出一系列我认为有挑战性有意思的题(所谓挑战性是对于大多数数分,SQL 资深者除外)我不想照搬 LeetCode 或牛客的题,更不想写 “学生表” 那类题。 3:2;最后筛选 5 个连续空座的标志,将“欧式距离”升序排列,并且将连续座位的显示格式调整一下即可。

    39501编辑于 2025-04-28
  • 】 几何水题 (水)

    10 12 14 1 7 8 9 10 8.134 9.098 7.123 5.10 Sample Output Case 1: 81.6496580 Case 2: 7.07106781 Case 3:

    23510编辑于 2025-08-26
  • 3016.3.5】老王修公园(dfs,水)

    样例输入 2 3 4 1 0 0 0 0 0 1 1 1 1 1 0 5 5 1 1 1 1 0 0 0 1 0 1 0 0 0 0 0 1 1 1 0 0 0 0 1 1 1 样例输出 2 3 dfs

    23210编辑于 2025-08-27
  • 来自专栏SQL 周周练

    SQL 】一千条数据需要做一天,怎么用 SQL 处理电表数据(如何动态构造自然月)

    本文是第 6 篇,也是【SQL 】系列的第 5 篇。该系列是挑选或自创具有一些难度的 SQL 题目,一至少更新一篇。 3.留存率拟合、预测、建模4.学习 AB 实验、复杂实验设计等5.自动化机器学习、自动化特征工程6.因果推断学习7. 这又涉及到两点,第一是如何判断有交集(包括哪怕只有端点一天相交),第二是如何取交集区间的数据来进行后续的计算(目前【SQL 】系列默认讨论 Hive,但很多思路可以移植到其他 SQL 方言;我了解到诸如 pdfrom datetime import datetime, timedelta# 确定随机数种子np.random.seed(2025)# 构造日期间隔date_interval_list = [1, 3, all_end, 'yyyy-MM'), all_end, last_day(month_start)) as month_end from get_every_month_start)……3.

    46410编辑于 2025-05-12
  • 3016.3.5】老王修马路(一)(水)

    样例输入 1 4 3 1 2 2 3 3 4 样例输出 Yes 并查集水题。

    17710编辑于 2025-08-27
  • 来自专栏python3

    3 作业

    2016-08-07 03:23 (192.168.137.2) user3    pts/4        2016-08-07 04:56 (192.168.137.2) [root@Client  [user3@Client var]$#/var一级子目录或文件总个数: [user3@Client var]$ ls -l | grep "^[d|-]" drwxr-xr-x.  2 root root root root 4096 Jul 31 19:06 yp [user3@Client var]$ ls -l | grep "^[d|-]" | wc -l 20 [user3@Client var [root@Client ~]# chage -m 3 -M 180 -W 3 slackware [root@Client ~]# cat /etc/shadow | tail -n 1 slackware :3:180:3:::    (10)、添加用户openstack,其ID号为3003, 基本组为clouds,附加组为peguin和nova; [root@Client ~]# groupadd clouds

    66220发布于 2020-01-10
  • 2016.3.7】B - Lucky Numbers(位运算,水)

    Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u

    20010编辑于 2025-08-27
  • 来自专栏SQL实现

    SQL 统计日活、活指标

    如果要统计 2020.11.10 这一天的活,那要计算的应该是从 2020.11.04 ~ 2020.11.10 这一的访问人数。 有一种解决方案是用标量子查询,将当前的日期传入到子查询中,在子查询里面统计当前日期过去一的日活。 请看下面的 SQL 实现: SELECT DATE(create_ts) AS view_day, (SELECT COUNT(DISTINCT user_id) FROM 再来看统计活的最终的 SQL3 如果要把日活和活合计到一块显示,那 SQL 可以这样写: WITH recursive full_day (bizdate) AS (SELECT '2020-11-10' AS bizdate

    3.2K21发布于 2020-11-26
  • 3016.3.5】QAQ的问题(排列与组合,好题)

    QAQ的问题 时间限制: 1 Sec 内存限制: 128 MB 提交: 11 解决: 3 [ 提交][ 状态][ 讨论版] 题目描述 有M个不同的阵地,每个阵地上可以留守任意个士兵 (2)选择的阵地不同 ——选择阵地1、2和选择阵地2、3。 (3)在选择的阵地中任意两个阵地留守士兵数目不同 ——阵地1有a人、阵地2有b人;阵地1有c人、阵地2有d人。其中a ! (2)选择2个阵地方案数为3 —— 在阵地1、2留守士兵人数为0 2、2 0、1 1。 这里要注意:不能依据每个阵地的人数来判定(1)里面的方案2 !0、!

    13510编辑于 2025-08-27
  • 来自专栏九彩拼盘的叨叨叨

    学习前端 第33

    了解display:inline-block; 会用display:inline-block;进行布局 了解用display:inline-block;进行布局时,出现的元素高低不平的解决方案(ver

    24140发布于 2018-08-27
领券