上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页
摘要: time limit per test 2 seconds memory limit per test 256 megabytes  You have n flower pots arranged in a line numbered from 1 to n left to right. So 阅读全文
posted @ 2025-10-16 10:48 bz02_2023f2 阅读(7) 评论(0) 推荐(0)
摘要: time limit per test 1 second memory limit per test 256 megabytes  You are given an integer n. Your task is to construct an array of length 2⋅n such 阅读全文
posted @ 2025-10-16 10:34 bz02_2023f2 阅读(8) 评论(0) 推荐(0)
摘要: time limit per test 1 second memory limit per test 256 megabytes  You are at (0,0) in a rectangular grid and want to go to (x,y). In order to do so 阅读全文
posted @ 2025-10-16 10:26 bz02_2023f2 阅读(7) 评论(0) 推荐(0)
摘要: E. Monotone Subsequence time limit per test 2 seconds memory limit per test 1024 megabytes  This is an interactive problem. Faker is being naughty 阅读全文
posted @ 2025-10-16 10:10 bz02_2023f2 阅读(6) 评论(0) 推荐(0)
摘要: 题目背景 从前有一个聪明的小魔女帕琪,兴趣是狩猎吸血鬼。 帕琪能熟练使用七种属性(金、木、水、火、土、日、月)的魔法,除了能使用这么多种属性魔法外,她还能将两种以上属性组合,从而唱出强力的魔法。比如说为了加强攻击力而将火和木组合,为了掩盖弱点而将火和土组合等等,变化非常丰富。 题目描述 现在帕琪与强 阅读全文
posted @ 2025-10-15 22:01 bz02_2023f2 阅读(19) 评论(0) 推荐(0)
摘要: 题目描述 gx 和 lc 去参加 noip 初赛,其中有一种题型叫单项选择题,顾名思义,只有一个选项是正确答案。 试卷上共有 n 道单选题,第 i 道单选题有 ai​ 个选项,这 ai​ 个选项编号是 1,2,3,…,ai​,每个选项成为正确答案的概率都是相等的。 lc 采取的策略是每道题目随机写上 阅读全文
posted @ 2025-10-15 22:00 bz02_2023f2 阅读(8) 评论(0) 推荐(0)
摘要: 题目背景 红包(redbag)发明了一个抢红包的系统。 题目描述 这个抢红包系统是这样的:假如现在有 w 元,那么你抢红包能抢到的钱就是 [0,w] 等概率均匀随机出的一个实数 x。 现在红包发了一个 w 元的红包,有 n 个人来抢。那么请问第 k 个人期望抢到多少钱? 输出答案对 109+7 取模 阅读全文
posted @ 2025-10-15 21:59 bz02_2023f2 阅读(12) 评论(0) 推荐(0)
摘要: 题目描述 清晨,Farmer John 被木头碎裂的声音吵醒。原来是奶牛们又一次从谷仓里逃出来了! Farmer John 对奶牛们的清晨逃跑行为感到厌烦,他决定受够了:是时候采取强硬措施了。他在谷仓的墙上钉了一个计数器,用于记录自上次逃跑以来的天数。因此,如果某天早上发生了逃跑,计数器当天会显示  阅读全文
posted @ 2025-10-15 21:58 bz02_2023f2 阅读(7) 评论(0) 推荐(0)
摘要: 题目描述 农场的冬天到了,这意味着下雪了!从农舍到谷仓的路上有 N 块地砖,方便地编号为 1…N,第 i 块地砖上覆盖了 fi​ 英尺的雪。 Farmer John 从第 1 块地砖出发,必须到达第 N 块地砖去叫醒奶牛。第 1 块地砖被农舍的屋顶遮蔽,第 N 块地砖被谷仓的屋顶遮蔽,因此这两块地砖 阅读全文
posted @ 2025-10-15 21:57 bz02_2023f2 阅读(10) 评论(0) 推荐(0)
摘要: 题目描述 有一个不超过 1017 的正整数 n,知道这个数除以 2 至 49 后的余数如下表所示,求这个正整数最小是多少。 anmodaanmodaanmodaanmoda2114112623383732151427203923411692825409541702916411651811302942 阅读全文
posted @ 2025-10-15 21:56 bz02_2023f2 阅读(12) 评论(0) 推荐(0)
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 36 下一页