原文:Codeforces Round #661 (Div. 3) A. Remove Smallest

You are given the array aa a consisting of n positive greater than zero integers. In one move, you can choose two indices i and j i j such that the absolute difference between a i and a j is no more t ...

2020-08-07 14:21 0 482 推荐指数:

查看详情

Codeforces Round #556 (Div. 1)

Codeforces Round #556 (Div. 1) A. Prefix Sum Primes 给你一堆1,2,你可以任意排序,要求你输出的数列的前缀和中质数个数最大。 发现只有\(2\)是偶质数,那么我们先放一个\(2\),再放一个\(1\),接下来把\(2\)全部放掉 ...

Thu May 02 23:48:00 CST 2019 2 390
Codeforces Round #560 Div. 3

题目链接;戳我 于是。。。风浔凌弱菜又去写了一场div.3 总的来说,真的是比较简单.......就是.......不开long long见祖宗 贴上题解—— A 给定一个数,为01串,每次可以翻转一个位置上的数,问最少几步可以使得它模\(10^x\)余\(10^y\) 从后往前贪心 ...

Wed May 15 16:06:00 CST 2019 4 323
Codeforces Round #745 (Div. 2)

A. CQXYM Count Permutations 思路: 答案是(2n)!/2,不知道啥原理,靠样例猜。 题目的描述是: 而这种情况答案是(2n)!/2,这占了全排列一半的情况,那么另一半的情况应该是 即这种情况答案应该也是(2n)!/2 而这个题防止意外 ...

Fri Oct 01 18:24:00 CST 2021 0 235
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM