- 博客(171)
- 收藏
- 关注
原创 第十三届山东省ICPC大学生程序设计竞赛 J. Not Another Path Query Problem
【代码】第十三届山东省ICPC大学生程序设计竞赛 J. Not Another Path Query Problem。
2024-04-23 17:09:31 181
原创 第十三届山东省ICPC大学生程序设计竞赛 B. Building Company
【代码】第十三届山东省ICPC大学生程序设计竞赛 B. Building Company。
2024-04-23 15:59:03 234
原创 Codeforces Round 821 (Div. 2) D2. Zero-One
【代码】Codeforces Round 821 (Div. 2) D2. Zero-One。
2024-04-23 01:03:04 413
原创 Codeforces Round 782 (Div. 2) D. Reverse Sort Sum
【代码】Codeforces Round 782 (Div. 2) D. Reverse Sort Sum。
2024-04-19 01:25:48 311
原创 Codeforces Round 814 (Div. 2) D2. Burenka and Traditions (hard version)
【代码】Codeforces Round 814 (Div. 2) D2. Burenka and Traditions (hard version)
2024-04-18 00:32:10 129
原创 Codeforces Round 800 (Div. 2) D. Fake Plastic Trees
【代码】Codeforces Round 800 (Div. 2) D. Fake Plastic Trees。
2024-04-16 17:33:31 138
原创 Codeforces Round 938 (Div. 3) E. Long Inversions
【代码】Codeforces Round 938 (Div. 3) E. Long Inversions。
2024-04-11 00:39:52 216
原创 Codeforces Round 833 (Div. 2) D. ConstructOR
【代码】Codeforces Round 833 (Div. 2) D. ConstructOR。
2024-04-07 00:01:28 145
原创 Codeforces Round 832 (Div. 2) D. Yet Another Problem
【代码】Codeforces Round 832 (Div. 2) D. Yet Another Problem。
2024-04-06 12:32:46 105
原创 Codeforces Round 931 (Div. 2) D1. XOR Break — Solo Version
【代码】Codeforces Round 931 (Div. 2) D1. XOR Break — Solo Version。
2024-04-06 11:18:48 266
原创 Codeforces Round 836 (Div. 2) D. Range = √Sum
【代码】Codeforces Round 836 (Div. 2) D. Range = √Sum。
2024-04-05 11:43:47 388
原创 Codeforces Round 824 (Div. 2) D. Meta-set
【代码】Codeforces Round 824 (Div. 2) D. Meta-set。
2024-04-05 11:08:03 481
原创 Educational Codeforces Round 133 (Rated for Div. 2) C. Robot in a Hallway
【代码】Educational Codeforces Round 133 (Rated for Div. 2) C. Robot in a Hallway。
2024-04-04 00:33:12 480
原创 Codeforces Round 837 (Div. 2) C. Hossam and Trainees
【代码】Codeforces Round 837 (Div. 2) C. Hossam and Trainees。
2024-04-03 22:20:43 130
原创 Educational Codeforces Round 163 (Rated for Div. 2) E. Clique Partition
【代码】【无标题】
2024-04-01 21:12:03 254
原创 Codeforces Round 930 (Div. 2) C. Bitwise Operation Wizard
【代码】Codeforces Round 930 (Div. 2) C. Bitwise Operation Wizard。
2024-04-01 20:40:55 142
原创 Codeforces Round 934 (Div. 2) D. Non-Palindromic Substring
【代码】Codeforces Round 934 (Div. 2) D. Non-Palindromic Substring。
2024-03-30 22:11:16 253
原创 Codeforces Round 850 (Div. 2) D. Letter Exchange
【代码】Codeforces Round 850 (Div. 2) D. Letter Exchange。
2024-03-30 16:35:26 281
原创 Codeforces Round 838 (Div. 2) D. GCD Queries
【代码】Codeforces Round 838 (Div. 2) D. GCD Queries。
2024-03-30 14:29:28 100
原创 Codeforces Round 840 (Div. 2) C. Another Array Problem
【代码】Codeforces Round 840 (Div. 2) C. Another Array Problem。
2024-03-29 23:59:03 397
原创 Codeforces Round 841 (Div. 2) C. Even Subarrays
【代码】Codeforces Round 841 (Div. 2) C. Even Subarrays。
2024-03-28 22:57:24 466
原创 Codeforces Round 842 (Div. 2) D. Lucky Permutation
【代码】Codeforces Round 842 (Div. 2) D. Lucky Permutation。
2024-03-27 22:42:06 115
原创 873 div2 D2. Range Sorting (Hard Version)
【代码】873 div2 D2. Range Sorting (Hard Version)
2024-03-26 10:46:42 203
原创 给定参数c和长度为n的递增数组a(ai <= c), 对于0<=x<=y<=c, 求(x,y)的对数,满足x+y不是数组a中的元素且y-x不是a中元素
【代码】给定参数c和长度为n的递增数组a(ai <= c), 对于0<=x<=y<=c, 求(x,y)的对数,满足x+y不是数组a中的元素且y-x不是a中元素。
2024-03-16 23:43:03 335
原创 给定n(3000)个点的坐标(互不相同),每个点向离自己最近的点的方向,同时以相同的速度移动,相遇后停止。定义一个点集的价值为所有点停止后不同坐标个数。求这n个点的集合的所有子集的价值之和
【代码】给定n(3000)个点的坐标(互不相同),每个点向离自己最近的点的方向,同时以相同的速度移动,相遇后停止。定义一个点集的价值为所有点停止后不同坐标个数。求这n个点的集合的所有子集的价值之和。
2024-03-15 00:54:47 334
原创 给定长度为n的数组a和b,选择一个序列p1, p2, ..., pk, 代价为a[p1]+...+a[pk] + abs(b[p2]-b[p1])+...+abs(b[pk]-b[p[k-1]]
给定m,在代价小于等于m的情况下最多能选择多少个元素。
2024-03-12 14:15:50 330
原创 给定l,r(1e18),定义f(x):x中最大的数位减去最小数位。对于l<=x<=r, 求f(x)最小值
【代码】给定l,r(1e18),定义f(x):x中最大的数位减去最小数位。对于l<=x<=r, 求f(x)最小值。
2024-03-11 00:59:50 352
原创 通过随机的方式生成长度为n的01串s:每个位置为1的概率为a / b, 求s中子串“00111“个数的期望
n<5的情况输出0,n>=5的话,统计每个五连位置00111对答案个数的贡献,有n-4个这样的五连位置,所以是(n-4)*p,其中p为出现00111的概率。
2024-03-10 21:34:46 334
原创 给定长度为n的数组a和b,确定长度为n的数组d[i], 满足a[i] % d[i] == 0, 设c[i] = d[i] * b[i], 使得数组c拆分成 元素连续相等的子数组的个数最少,求最少个数
【代码】给定长度为n的数组a和b,确定长度为n的数组d[i], 满足a[i] % d[i] == 0, 设c[i] = d[i] * b[i], 使得数组c拆分成 元素连续相等的子数组的个数最少,求最少个数。
2024-03-09 18:31:16 377
原创 长度为n的数组a初始值全为0,目标是把数组a变为数组b(1<=bi<=n), 可以进行任意次操作:选择长度为k的数组c,(1<=ci<=n且两两不同)
对于1
2024-03-06 20:21:29 854
原创 给定长度为n的数组a,每一次操作可以使相邻两个元素都+1或者-1,可以进行任意次操作,求最终能否使数组非递减
【代码】给定长度为n的数组a,每一次操作可以使相邻两个元素都+1或者-1,可以进行任意次操作,求最终能否使数组非递减。
2024-03-06 00:46:49 406
原创 长度为n(下标从0开始)的数组a(0<=ai<=200), 序列b1,b2,...,bm美丽当且仅当0<=bi<=n且b[i]<b[i+1],且a[bi]^b[i+1]<a[b[i+1]]^b[i]。
求美丽序列的最大长度。
2024-03-03 21:49:59 437
Python (2).zip
2024-01-22
基于ptyhon的在线考试系统
2024-01-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人