![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
文章平均质量分 82
打饭不叫我?
这个作者很懒,什么都没留下…
展开
-
codeforces div2 777 A
AA. Madoka and Math Dadtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMadoka finally found the administrator password for her computer. Her father is a well-known popularizer of math原创 2022-03-16 20:22:45 · 182 阅读 · 0 评论 -
牛客练习赛97
A给定一个数组。每次可以交换数组中两个奇数或者两个偶数,可以交换无数次。问最后是否能把数组变成非降序数组?用数学语言来说,对于数组aaa,每次可以交换 aia_iai 和 aja_jaj ,当且仅当i≠ji≠ji=j 且 (ai−aj)mod2=0(a_i-a_j)\ mod\ 2=0(ai−aj)mod2=0。问经过一些操作后,最终是否能使得数组满足:对于 i∈[1,n)i∈[1,n)i∈[1,n),ai≤ai+1a_i\leq a_{i+1}ai≤ai+1?输入描述:...原创 2022-03-10 21:22:46 · 447 阅读 · 0 评论 -
codeforces 754 div 3 题解
Problem AA. Plus One on the Subsettime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp got an array of integersa[1…n]a[1…n]as a gift. Now he wants to perform a certain number o..原创 2022-01-19 17:27:10 · 492 阅读 · 0 评论