Compass Card Sales Gym - 101572C NCPC2017

科技中介服务机构想要提升服务效率,需要哪些数智工具支持?.docx 科技中介服务机构想要提升服务效率,需要哪些数智工具支持? 立即下载

Problem:https://odzkskevi.qnssl.com/da9adfb686ef541a14cec9856721130a?v=1535198186
Source:http://codeforces.com/gym/101572/attachments

Solution

//This is my AC version

#include<bits/stdc++.h>

using namespace std;

const int N = 100000;
const int MX = 360;
int n;
int card[N][3], ID[N], cnt_ColAngle[3][MX];
int LA[3][MX], RA[3][MX];
int score_CA[3][MX], score_lab[N];

struct data {
    int id, score;
    data () {}
    data (int a,int b) {
        id = a, score = b;
    }
    bool operator<(const data &b) const {
        if (score == b.score) return id > b.id;
        return score < b.score;
    }
};
set<data> S;
vector<int> A[3];
set<int> lab[3][MX];
map<int,int> Map;

int calc_lab(int p) { // Calculate the score of card with label p.
    return score_CA[0][card[p][0]] + score_CA[1][card[p][1]] + score_CA[2][card[p][2]];
}

int calc_ColAngle(int col, int x) { //Calculate the score of angle x, color col.
    if (cnt_ColAngle[col][x] > 1) return 0; // If there are more than one this color of angles, the uniqueness value of them should be zero.
    int res = RA[col][x] - LA[col][x];
    return res>0 ? res : res + 360;
}

void Update(int p) {// After sold the card with label p whose id is ID[p] off, we need to check if it's necessary to update the angles and cards besides it.
    int x, tmp;
    set<int>::iterator ip;
    for (int col = 0; col < 3; ++col) {
        x = card[p][col]; // card p's angle based on color col.
        cnt_ColAngle[col][x]--;
        if (cnt_ColAngle[col][x] > 1) continue; //If this color still has more than one angles valued x, we have to do nothing.
        else if (cnt_ColAngle[col][x] == 1) {//Still has one left, score_CA[col][x] will change into nonzero; check whether cards in S need to be update.
            for (ip = lab[col][x].begin(); ip != lab[col][x].end(); ip++) {//Update cards with angle x based on color col which lab is *ip.
                score_CA[col][x] = calc_ColAngle(col,x);
                if (score_lab[*ip] != calc_lab(*ip)) {
                    S.erase(S.find(data(ID[*ip],score_lab[*ip])));
                    S.insert(data(ID[*ip],score_lab[*ip]=calc_lab(*ip)));
                }
            }//Summarize: Change one angle, Update one angle, many cards.
        } else {//None left, update both angles on the left and on the right; check cards in S.
            int lA = LA[col][x];
            int rA = RA[col][x];
            LA[col][rA] = lA;
            RA[col][lA] = rA;
            tmp = calc_ColAngle(col, lA);
            if (score_CA[col][lA] != tmp) {
                score_CA[col][lA] = tmp;
                for (ip = lab[col][lA].begin(); ip != lab[col][lA].end(); ip++) {
                    S.erase(S.find(data(ID[*ip], score_lab[*ip])));
                    S.insert(data(ID[*ip], score_lab[*ip] = calc_lab(*ip)));
                }
            }
            tmp = calc_ColAngle(col, rA);
            if (score_CA[col][rA] != tmp) {
                score_CA[col][rA] = tmp;
                for (ip = lab[col][rA].begin(); ip != lab[col][rA].end(); ip++) {
                    S.erase(S.find(data(ID[*ip], score_lab[*ip])));
                    S.insert(data(ID[*ip], score_lab[*ip] = calc_lab(*ip)));
                }
            }
        }//Summarize: Change one angle, Update two angle, many many cards.
    }
}

void Input() {
    int x;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        for (int j = 0; j < 3; ++j) {
            scanf("%d", &x);
            card[i][j] = x;
            if (cnt_ColAngle[j][x] == 0) A[j].push_back(x);
            cnt_ColAngle[j][x]++;
            lab[j][x].insert(i);
        }
        scanf("%d", &ID[i]);
        Map[ID[i]]=i;
    }
}

void ScoringOnAngle() {
    int len;
    for (int col = 0; col < 3; ++col) {
        sort(A[col].begin(), A[col].end());
        len = A[col].size();
        for (int i = 0; i + 1 < len; ++i) {//0<=i,i+1<=size()-1
            LA[col][A[col][i + 1]] = A[col][i];
            RA[col][A[col][i]] = A[col][i + 1];
        }
        LA[col][A[col][0]] = A[col][len - 1];
        RA[col][A[col][len - 1]] = A[col][0];
        for (int i = 0; i < len; ++i)
            score_CA[col][A[col][i]] += calc_ColAngle(col, A[col][i]);
    }
}

void ScoringOnLab() {
    for (int i = 0; i < n; ++i) {
        score_lab[i] = calc_lab(i);
        //printf("i=%d scoreID=%d\n",i,score_lab[i]);
        S.insert(data(ID[i], score_lab[i]));
    }
}

void Output() {
    set<data>::iterator ipd;
    int ip;
    while (!S.empty()) {
        ipd = S.begin();
        ip = Map[ipd->id];
        printf("%d\n", ipd->id);
        for (int col = 0; col < 3; ++col)
            lab[col][card[ip][col]].erase(ip);
        S.erase(ipd);
        Update(ip);
    }
}

int main() {
    //freopen("../in", "r", stdin);
    Input();
    ScoringOnAngle();
    ScoringOnLab();
    Output();
    return 0;
}

//This is my RE version

#include<bits/stdc++.h>

using namespace std;

const int N = 100000;
const int MX = 360;
int n;
int card[N][3], ID[N], cnt_ColAngle[3][MX];
int LA[3][MX], RA[3][MX];
int score_CA[3][MX], score_lab[N];

struct data {
    int id, score;
    data () {}
    data (int a,int b) {
        id = a, score = b;
    }
    bool operator<(const data &b) const {
        if (score == b.score) return ID[id] > ID[b.id];
        return score < b.score;
    }
};
set<data> S;
vector<int> A[3];
set<int> lab[3][MX];

int calc_lab(int p) { // Calculate the score of card with label p.
    return score_CA[0][card[p][0]] + score_CA[1][card[p][1]] + score_CA[2][card[p][2]];
}

int calc_ColAngle(int col, int x) { //Calculate the score of angle x, color col.
    if (cnt_ColAngle[col][x] > 1) return 0; // If there are more than one this color of angles, the uniqueness value of them should be zero.
    int res = RA[col][x] - LA[col][x];
    return res>0 ? res : res + 360;
}

void Update(int p) {// After sold the card with label p whose id is ID[p] off, we need to check if it's necessary to update the angles and cards besides it.
    int x, tmp;
    set<int>::iterator ip;
    for (int col = 0; col < 3; ++col) {
        x = card[p][col]; // card p's angle based on color col.
        cnt_ColAngle[col][x]--;
        if (cnt_ColAngle[col][x] > 1) continue; //If this color still has more than one angles valued x, we have to do nothing.
        else if (cnt_ColAngle[col][x] == 1) {//Still has one left, score_CA[col][x] will change into nonzero; check whether cards in S need to be update.
            for (ip = lab[col][x].begin(); ip != lab[col][x].end(); ip++) {//Update cards with angle x based on color col which lab is *ip.
                score_CA[col][x] = calc_ColAngle(col,x);
                if (score_lab[*ip] != calc_lab(*ip)) {
                    S.erase(S.find(data(*ip,score_lab[*ip])));
                    S.insert(data(*ip,score_lab[*ip]=calc_lab(*ip)));
                }
            }//Summarize: Change one angle, Update one angle, many cards.
        } else {//None left, update both angles on the left and on the right; check cards in S.
            int lA = LA[col][x];
            int rA = RA[col][x];
            LA[col][rA] = lA;
            RA[col][lA] = rA;
            tmp = calc_ColAngle(col, lA);
            if (score_CA[col][lA] != tmp) {
                score_CA[col][lA] = tmp;
                for (ip = lab[col][lA].begin(); ip != lab[col][lA].end(); ip++) {
                    S.erase(S.find(data(*ip, score_lab[*ip])));
                    S.insert(data(*ip, score_lab[*ip] = calc_lab(*ip)));
                }
            }
            tmp = calc_ColAngle(col, rA);
            if (score_CA[col][rA] != tmp) {
                score_CA[col][rA] = tmp;
                for (ip = lab[col][rA].begin(); ip != lab[col][rA].end(); ip++) {
                    S.erase(S.find(data(*ip, score_lab[*ip])));
                    S.insert(data(*ip, score_lab[*ip] = calc_lab(*ip)));
                }
            }
        }//Summarize: Change one angle, Update two angle, many many cards.
    }
}

void Input() {
    int x;
    scanf("%d", &n);
    for (int i = 0; i < n; ++i) {
        for (int j = 0; j < 3; ++j) {
            scanf("%d", &x);
            card[i][j] = x;
            if (cnt_ColAngle[j][x] == 0) A[j].push_back(x);
            cnt_ColAngle[j][x]++;
            lab[j][x].insert(i);
        }
        scanf("%d", &ID[i]);
    }
}

void ScoringOnAngle() {
    int len;
    for (int col = 0; col < 3; ++col) {
        sort(A[col].begin(), A[col].end());
        len = A[col].size();
        for (int i = 0; i + 1 < len; ++i) {//0<=i,i+1<=size()-1
            LA[col][A[col][i + 1]] = A[col][i];
            RA[col][A[col][i]] = A[col][i + 1];
        }
        LA[col][A[col][0]] = A[col][len - 1];
        RA[col][A[col][len - 1]] = A[col][0];
        for (int i = 0; i < len; ++i)
            score_CA[col][A[col][i]] += calc_ColAngle(col, A[col][i]);
    }
}

void ScoringOnLab() {
    for (int i = 0; i < n; ++i) {
        score_lab[i] = calc_lab(i);
        //printf("i=%d scoreID=%d\n",i,score_lab[i]);
        S.insert(data(i, score_lab[i]));
    }
}

void Output() {
    set<data>::iterator ipd;
    while (!S.empty()) {
        ipd = S.begin();
        printf("%d\n", ID[ipd->id]);
        for (int col = 0; col < 3; ++col)
            lab[col][card[ipd->id][col]].erase(ipd->id);
        S.erase(ipd);
        Update(ipd->id);
    }
}

int main() {
    //freopen("../in", "r", stdin);
    Input();
    ScoringOnAngle();
    ScoringOnLab();
    Output();
    return 0;
}

//Test Code

//#include <bits/stdc++.h>
//using namespace std;
//int a[10] = {1,5,3,2,6,0,4};
//int b[10] = {0,1,2,3,4,5,6};
//int main() {
//    for (int i=0;i<5;++i)
//        for (int j=i+1;j<6;++j)
//            if (a[b[i]]<a[b[j]]) swap(b[i],b[j]);
//    for (int i=0;i<6;++i) printf("%5d",a[b[i]]);
//    return 0;
//}

tmw?

usb 扩容盘检测修复工具源码,编译产物 立即下载

相关推荐

融合UWB和IMU割草机定位EKF研究(Matlab代码实现)

内容概要:本文主要介绍了一个名为“Plecs全桥LLC谐振变换器仿真模型”的技术资源,该资源聚焦于电力电子领域中的LLC谐振变换器建模与仿真,涵盖开环、闭环控制、软启动设计及参数优化等核心内容。文档不仅提供了LLC变换器的详细建模方法与仿真案例,还系统梳理了其在高效电源转换系统中的应用,包括隔离型全桥拓扑结构的设计与性能分析。此外,资源汇总了大量Matlab/Simulink仿真模型及相关科研方向,涉及新能源并网、储能控制、电机驱动等多个前沿领域,全面展示LLC谐振变换器在现代电力系统中的关键技术实现路径。同时,文档附带多种学习资料获取途径,如网盘链接和公众号资源,便于研究人员深入实践与拓展研究。; 适合人群:具备扎实的电力电子、自动控制理论基础,从事新能源发电、开关电源设计、电力系统仿真等相关领域的研究生、工程师及科研人员。; 使用场景及目标:①深入理解LLC谐振变换器的工作原理、建模方法与控制策略;②开展电力电子变换器的仿真验证与参数优化设计;③支撑科研项目、学位论文或工程项目的系统仿真与方案验证; 阅读建议:建议结合所提供的仿真模型与参考文献,使用Plecs或Simulink软件进行动手实践,重点掌握LLC谐振变换器的建模流程、闭环控制设计、软启动机制及参数调试技巧,以全面提升在实际工程中的应用与创新能力。

NCPC 2017部分题题解(第一次组队磨合赛)

题目链接:https://cn.vjudge.net/contest/235654#overview建队以来的第一场组队赛,打的总体来说一般。赛后总结一下,前期打得不错,队友手速A掉两道水题。之后,就。。。这次开的题其实挺多的,但可惜很多都没做出来。想D题,一开始思路跑了。。。E题,莫名其妙写挂了。。。G题,debug了2小时,最后我们仨盯着电脑看了半个小时找出来了。。。I题,窝想出了个O(n^2...

star_moon0309的博客 507

基于变频控制的多相交错LLC谐振变换器闭环仿真(Simulink仿真实现)

基于变频控制的多相交错LLC谐振变换器闭环仿真(Simulink仿真实现)内容概要:本文主要介绍了基于Plecs的全桥LLC谐振变换器仿真模型,涵盖变频控制下的多相交错LLC谐振变换器闭环仿真、V2G电动汽车ACDC整流与双向CLLC谐振变换器充放电仿真、LLC谐振变换器的开环与闭环软启动设计,以及储能系统中双向Buck-Boost变换器结合模型预测电流控制和电压下垂控制的仿真研究。同时,文档列举了多种电力电子系统与控制策略的Simulink/Plecs仿真案例,涉及三相交错并联Buck变换器、三电平Buck直流变换器、单相Boost PFC电路等,展示了丰富的电力变换器建模与控制技术。此外,还包括参数设计报告、计算书及相关参考文献,适用于从事电力电子、新能源发电、电动汽车充放电系统等领域的研究人员和技术开发人员。; 适合人群:具备电力电子、自动控制理论基础,从事新能源、电动汽车、电力系统等相关领域研究的研发人员、高校研究生及高年级本科生。; 使用场景及目标:① 学习和掌握LLC谐振变换器及其他典型电力电子变换器的工作原理与建模方法;② 实现闭环控制策略如变频控制、软启动、模型预测控制、下垂控制等的仿真验证;③ 支持科研项目、毕业设计或工程开发中的系统仿真与优化设计。; 阅读建议:建议结合文中提供的仿真模型、设计报告与参考文献,逐步搭建并调试相应系统,重点关注控制策略的实现细节与参数整定过程,以深入理解系统动态响应特性与控制性能。

Compass Card Sales(模拟)

Compass Card Sales 时间限制:3 Sec内存限制:128 MB提交:35解决:13[提交] [状态] [讨论版] [命题人:admin] 题目描述 Katla has recently stopped playing the collectible card game Compass. As you might remember, Com...

weixin_30867015的博客 316

Deep Reinforcement Learning - 1. DDPG原理和算法

Deep Reinforcement Learning - 1. DDPG原理和算法 背景描述 DDPG的定义和应用场景 DDPG算法相关基本概念定义 DDPG实现框架和算法 DDPG对于DPG的关键改进 下一篇 以下用RL作为Reinforcement Learning 的简称。背景描述概括来说,RL要解决的问

kenneth_yu的博客 14万+

浅谈一下小波变换和EEG信号处理

浅谈小波变换,总结不是很到位,请大家指正。

qq_45045249的博客 2864

【训练小结】NCPC 2017

trac 题解 F - Fractal Tree 题解: 从上往下二分可以找到每个点的位置,记录二分路径上所在的层数和在原树中的位置 最后求距离的时候,发现路径的lcp是大家的公共部分,删去即可,然后各自的第一个点在原树上求lca,剩下的把深度加起来即可 技巧: 超过inf的点数,用-inf代替,判负数可知 总结: 这题要深入的理解lca的本质,即跳到一个相同的祖先之后一定完全相同。并且需要想...

执子之手,与子偕老 392

Python实现微信PC端聊天记录自动化监听与智能回复

本文详细介绍了如何使用Python实现微信PC端聊天记录的自动化监听与智能回复。通过win32api和uiautomation库,模拟人工操作,实时监控聊天窗口并抓取新消息。文章重点讲解了核心代码逻辑、环境搭建步骤,并提供了实现关键词触发自动回复的完整方案,旨在提高工作效率与信息管理自动化水平。

weixin_29092031的博客 347

NCPC2017A(dp+单调队列)

题目链接:http://codeforces.com/group/Us3rfLfgWv/contest/101572这题其实出得蛮好的。。先设等咖啡的时间和速度为t1、v1 ,喝咖啡的时间为t2、v2显然有一个N^2的做法。。一开始想令d[i]为到第i个咖啡厅的最短时间的。。可是精度上比较可能会出现问题。。必须用longdouble才行。。而tsy说这个其实时间最短意味着以v2速度走的路程最长啊。...

qkoqhh 328

TC3XX - MCAL知识点(三十七):AURIX™ TC3xx 的BootLoader烧录APP完成之后跳转使多个核均正常运行

摘要:针对AURIX TC3xx多核芯片在软件复位后仅Core0能启动的问题,分析发现该芯片在Cold Power-on Reset(断电复位)时会完整执行多核启动流程,而Application Reset(软件复位)会跳过从核初始化。解决方案包括:1)在BootLoader中显式调用IfxCpu_startCore()函数启动其他核;2)通过跳转函数强制各核从指定地址启动;3)双Boot场景下让每个核独立响应复位命令。实测表明,软件复位后需手动触发从核启动,或采用断电复位方式确保所有核正常初始化。

梦想技术家 413

总目录- AutoSAR从入门到精通实战系列课程【持续更新中...】

欢迎大家订阅《AutoSAR入门和实战系列》,开始前博主先列出AutoSAR学习的大纲,同时这也可以作为大家学习AutoSAR的参考。想学习和及以及的同学们,可以订阅本博客,本博客一直持续更新中。如果想深入或从本质上学习和理解AutoSAR,打开此链接后,,点击左下方【立即订阅】订阅专栏!!!】......

4万+

2017-2018 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2017) 部分题/平衡树/最小环/思路bfs

交题地址 难度按照顺序递增 J - Judging Moose 队友敲的 #include #include using namespace std; int main() { int l, r; while(~scanf("%d %d", &l, &r)){ if(l == r && l != 0){ printf("Even ");

kyoma的博客 1541

用Obsidian搭建个人知识库:AI时代如何构建你的第二大脑

AI 时代,真正有价值的不只是获取知识,而是沉淀属于自己的知识体系。本文从 Obsidian 安装、目录设计、双向链接、插件推荐到 AI 联动、多端同步,手把手教你打造高效、可持续进化的个人知识库,让知识真正为你所用。🧠

XiaoqiangClub的博客 472

【NCPC2017-2018-gym101572-E.Emptying the Baltic 】优先队列

Emptying the Baltic 题目链接: https://codeforces.com/gym/101572/problem/A Description Input Output Sample Input 3 3 -5 2 -5 -1 -2 -1 5 4 -5 2 2 Sample Output 10 题意 给你一个n*m的水池,每个格子都有一个相对于水平面的高度,如果为负数说明在...

lajiyuan的博客 336

华为OD机试 - 跳房子I(Java 双机位A卷 100分)

可行的两步组合有 [1, 2] (索引和 0+3=3)、[1, 2] (索引和 0+4=4)、[4, 2] (索引和 1+3=4)、[4, 2] (索引和 1+4=5)、[5, 2] (索引和 2+3=5)、[5, 2] (索引和 2+4=6)。此样例有多种组合满足两回合跳到最后,譬如[-1,9], [2,6],其中[-1,9]的索引和为0+3=3, [2,6]的索引和为1+4=5, 所以索引和最小的步数组合为[-1,9].[3, 2] 和 [1, 4] 都满足和等于 5,且索引和均为 3。

学Java,找哪吒 4508

【图像去噪】论文复现:大道至简!NAFNet的Pytorch源码复现!跑通NAFNet源码,补充PlainNet,由大到小拆解NAFNet网络结构,由小到大实现结构组合,逐行注释!

论文题目:Simple Baselines for Image Restoration —— 图像恢复的简单基线【图像去噪】论文精读:Simple Baselines for Image Restoration(NAFNet)本文以SIDD数据集为例,跑通NAFNet源码,详解NAFNet网络结构与实现。建议与KBNet和CGNet的复现文件综合查看。训练和测试代码解析见单独的BasicSR源码精读(后续会出)。

主要更新底层视觉(去噪、超分等)相关的科研内容,形式为【论文精读】+【论文复现】 2995

GYM - 101572G Galactic Collegiate Programming Contest 离散化 + 线段树或树状数组

题目链接: GYM - 101572题目大意一场比赛, 每个队伍的分数由(a, b)组成, a是做题数量, b是总罚时, 题量多的排名前, 相同题量罚时少靠前, 如果题量罚时都相同, 排名一样, 例如, (1, 1), (1, 1), (0, 0)三支队伍排名为1, 1, 2 现在有n支队伍, m个事件, 每个事件由(t, p)组成, 代表队伍t以罚时p做出了一题 让你输出每个事件后, 队伍1的

litmxs的博客 868

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

NCPC2017

见识了qt的分块求第k大,n*logn*sqrtn 可用set水,维护比1号小组优秀的组,然后set.size()得到答案。 #include #include #include #include #define maxl 100010 using namespace std; int n,m; struct state { int pent,sum,ind; bool operato

binarycopycode 517

精雕软件(JDpaint) 5.5 绿色版

精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版精雕软件(JDpaint) 5.5 绿色版

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

NCPC2017 Distinctive Character bfs+思维

7632: Distinctive Character 时间限制:1 Sec内存限制:128 MBSpecial Judge 提交:69解决:23 [提交] [状态] [讨论版] [命题人:admin] 题目描述 Tira would like to join a multiplayer game with n other players. Each player has...

喵喵喵 383

android 蓝牙通讯demo

android 下蓝牙通讯demo,实现了发现蓝牙,使能蓝牙,通过蓝牙发送消息。

2017-2018 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2017)(solve7/11)

题目链接:http://codeforces.com/gym/101572 B题 题意:给你n个人的第一棒的速度和其他棒的速度,然后让你输出最快的那个组合,输出时间和人。 思想:模拟 D题 题意:给你n个01串代表每个人的特征,现在让你求一个和他们长度相等但是和他们相似度最对的那个串。 思想:考虑最短路问题,将每个串拆出来k个差一位的子串,然后每个串开始不断的取反某一位,最后找到一个取...

passer__的博客 463

NCPC-2017 D-Distinctive Character

题意:给定多个串,求一个串与其他串相似性最小,即每一位相同的字符数最少。 思路:bfs搜,类似于数据结构学的访问树的层数 #include<stdio.h> #include<iostream> #include<queue> #include<string.h> using namespace std; char a[25]; int d...

Ven 524

CodeForces-Gym 101142C CodeCoder vs TopForces(搜索)

传送门:http://codeforces.com/gym/101142/attachments Problem C. CodeCoder vs TopForces Input file: codecoder.in Output file: codecoder.out Time limit: 2 seconds Memory limit: 256 megabytes Competi

十分残念的博客 1767

NCPC2017E(MST)

题目链接:http://codeforces.com/group/Us3rfLfgWv/contest/101572orz这么看都不可能想到MST吧。。cls太强了%%%%最开始想到的是bfs,然而写挂了qaq对每个点来说能抽到的最大的水量是从起点到该点路径上的点权最大值。。所以要令这个最大值最小,只需要点权最小。。对每个点给每个相邻点连边,令其边权为点权的最大值。。那么可以转化为到路径上的边权最...

qkoqhh 294

Gym 101572 I.Import Spaghetti【Floyd最小环+输出路径】

题目大意: 输出最小环的路径。 思路: 板子= = Ac代码: #include #include #include #include #include using namespace std; maps; mapre; int n; int path[605][605]; int mp[605][605]; int dist[605][605];

mengxiang000000 764

NCPC2017D(位运算+bfs)

题目链接:http://codeforces.com/group/Us3rfLfgWv/contest/101572真的是巧。。打场cf做了里面的2道题就知道这题该怎么做了。。http://codeforces.com/contest/986/problem/Chttp://codeforces.com/contest/986/problem/A其实,给定的m个数其实都在2^n内。。所以只要建个包...

qkoqhh 340

Judging Moose NordicCollegiateProgrammingContestNCPC2017/Gym-101572J

Judging Moose NordicCollegiateProgrammingContestNCPC2017/Gym-101572J

l_mark的博客 417
上一篇: Team Match
下一篇: BUAA Summer Training 2018.08.27 E - Black or White [Aizu - 1382]
cybbsc
博客等级 码龄10年 15粉丝 87原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值