网站首页 站内搜索

搜索结果

查询Tags标签: 813,共有 2条记录
  • Codeforces Round #813 (Div. 2) A - E2

    A:一组长度为n 的排列,问交换多少次,能让前m个数变成[1,m]中的数 输出前 m 个数中有多少个比 m 大的就可以了//-------------------------代码----------------------------//#define int ll const int N = 1e5+10; int n,m;void solve() {cin>>n>>m;int a…

    2022/8/27 6:23:08 人评论 次浏览
  • Codeforces Round #813 (Div. 2) A~C

    A. Wonderful PermutationYou are given a permutation p1,p2,…,pnp1,p2,…,pn of length nn and a positive integer k≤nk≤n. In one operation you can choose two indices ii and jj (1≤i<j≤n1≤i<j≤n) and swap pipi with pjpj. Find the minimum number …

    2022/8/14 6:23:08 人评论 次浏览
扫一扫关注最新编程教程