Codeforces Round #324 (Div. 2) (584A,584B(排列组合),584C(构造),584D(哥德巴赫猜想),584E(置换群))

【MATLAB例程,无人机避障7】基于RRT*与人工势场法(RRT*+APF)的多无人机二维动态路径规划与避障 程序采用快速扩展随机树星算法(RRT*)与人工势场法(APF),实现四架无人机在二维动态障碍环境中的路径规划与协同避碰。通过RRT*的邻域选父和节点重连优化全局参考路径,利用APF进行局部动态避障,绘制全局路径、实际轨迹、安全净间隙、速度与加速度及航程等图像,对比RRT+APF与RRT*+APF的规划效果。无人机起终点、障碍物分布、采样次数及运动约束均可自行调整。 立即下载

1.Olesya and Rodion


题目链接:

http://codeforces.com/problemset/problem/584/A

解题思路:

Two cases: t = 10 and t ≠ 10.

If t = 10 then there are two cases again :). If n = 1 then answer is  - 1 (because there is not any digit divisible by t). If n > 1, then answer, for example, is '1111...110' (contains n - 1 ones).

If t < 10 then answer, for example, is 'tttttttt' (it, obviously, divisible by t).

题目大意:

给你二个数n、t,求一个能够被t整除的n位数,存在多组解时输出任意一组,不存在时输出“-1”。

AC代码:

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n,t;
    while(~scanf("%d%d",&n,&t)){
        if(t == 10){
            if(n == 1)
                printf("-1\n");
            else{
                n--;
                for(int i = 0; i < n; i++)
                    printf("1");
                printf("0\n");
            }
        }
        else{
            for(int i = 0; i < n; i++)
                printf("%d",t);
            printf("\n");
        }
    }
    return 0;
}

2.Kolya and Tanya(排列组合)


题目链接:

http://codeforces.com/problemset/problem/584/B

解题思路:

The number of ways to choose ai (without any conditions) — 33n. Let A be the number of ways to choose ai with condition that in every triangle gnomes have 6 coins. Then answer is 33n - A.

Note that we can separate all gnomes on n independent triangles (i-th triangle contains of ai, ai + n, ai + 2n, i < n). So we can count answer for one triangle and then multiply the results. To count answer for one triangle, we can note that there are 7 ways to choose gnomes with 6coins (all permutations 1, 2, 3 and 2, 2, 2).

So answer is — 33n - 7n. We count it in O(n).

题目大意:

在一个圆上,3n个点依次标号,然后标号为i,i+n,i+2n的点连成三角形。然后每个点分配一个值(在1-3范围内)。然后只要有一个

三角形的点的值的和不为6就成功。问有多少种分配方案。

算法思想:

排列组合。总共3^3n个可能,减去7^n个不可能的结果。因为要么是222要么是123才能有6,然后222只有1种123可以6种,加起来

一个三角形的不成功的情况有7种。

AC代码:

#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
const int mod = 1e9+7;

ll pow_mod(ll base,int n){
    ll ans = 1;
    while(n){
        if(n&1)
            ans = (ans*base)%mod;
        base = (base*base)%mod;
        n >>= 1;
    }
    return ans;
}

int main(){
    int n;
    while(~scanf("%d",&n)){
        printf("%lld\n",(pow_mod(27LL,n)-pow_mod(7LL,n)+mod)%mod);
    }
    return 0;
}

3.Marina and Vasya(构造)


题目链接:

http://codeforces.com/problemset/problem/584/C

解题思路:

Let's find a string that will be equal to s1 in k = n - t positions and equal to s2 in k = n - t positions. Let's denote q = quantity of i thats1i = s2i. If k ≤ q, then let's take k positions such that s1pos = s2pos and put in answer the same symbols. Then put in other n - k positions symbols, which are not equal to corresponding in s1 and s2 (we can do it, because we have 26 letters).

Now k > q. So, if there is an answer, where exists pos such that s1pos = s2pos, s1pos ≠ anspos, let's denote ansi = s1i, and then in any position such that s1i ≠ s2i = ansi and s1i = ansi (and in the same position in s2) we will choose ai, such that ai ≠ s1i and ai ≠ s2i (we can do it because k > q). So, for every position from q we can put symbols, equal to corresponding symbols in s1 and s2. Now we have strings s1, s2 of length n - q (such that s1i ≠ s2i for every i) and we should find string ans such that f(ans, s1) = f(ans, s2). We know thats1i ≠ s2i, so ansi may be equal to corresponding in s1 or to corresponding in s2 or not equal to s1i and to s2i. So, we need, at least,2(k - q) symbols in answer to make f(s1, ans) = k - q and f(s2, ans) = k - q. Consequently, if n - q < 2(k - q), the answer is  - 1, and else just put first k - q symbols in answer from s1, next k - q symbols from s2, and others won't be equal to corresponding in s1 and s2.

Solution works in O(n).

题目大意:

给你两个长度为n的串a、b,然后要你找出一个新串c,这个串c和之前两个串不同的字符数目恰好为t个。

算法思想:

反过来想,令same为g(a,c),先找a[i],b[i]两个串相同的位置并标记,相同的个数为cnt,如果same > cnt+(n-cnt)/2,则不能同时满

足g(a,c)=same,g(a,c)=same。所以输出-1即可。然后先使c[i]满足a[i]=b[i]的情况。接着再满足c[i]=a[i]和c[i]=b[i]的情况,剩下的全是

不相等的情况,一一枚举即可。

AC代码:

#include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;

char a[100005],b[100005],c[100005];
int vis[100005];

int main(){
    int n,t;
    while(~scanf("%d%d",&n,&t)){
        memset(c,0,sizeof(c));
        memset(vis,0,sizeof(vis));
        scanf("%s",a);
        scanf("%s",b);
        int flag = 0,same = n-t,cnt = 0;
        for(int i = 0; i < n; i++){
            if(a[i] == b[i]){
                vis[i] = 1;
                cnt++;
            }
        }
        if(same > cnt+(n-cnt)/2){
            printf("-1\n");
            continue;
        }
        for(int i = 0; i < n; i++){
            if(same && vis[i]){
                c[i] = a[i];
                same--;
            }
        }
        cnt = same;
        for(int i = 0; i < n; i++){
            if(cnt && !c[i]){
                c[i] = a[i];
                cnt--;
            }
        }
        cnt = same;
        for(int i = 0; i < n; i++){
            if(cnt && !c[i]){
                c[i] = b[i];
                cnt--;
            }
        }
        for(int i = 0; i < n; i++){
            if(!c[i]){
                for(char j = 'a';; j++){
                    if(j != a[i] && j != b[i]){
                        c[i] = j;
                        break;
                    }
                }
            }
        }
        c[n] = '\0';
        printf("%s\n",c);
    }
    return 0;
}

4.Dima and Lisa(哥德巴赫猜想)


题目链接:

http://codeforces.com/problemset/problem/584/D

解题思路:

There is a fact that the distance between adjacent prime numbers isn't big. For n = 109 maximal distanse is 282. So let's find maximal prime p, such that p < n - 1 (we can just decrease n while it's not prime(we can check it in )). We know that n - p < 300. Now we have even (because n and p are odd) number n - p and we should divide it into a sum of two primes. As n - p < 300, we can just iterate over small primes P and check if P is prime and n - p - P is prime. You can check that there is a solution for all even numbers less than300 by bruteforce.

题目大意:

给你一个数n,要你把n拆成1-3个素数的和。n是奇数。

算法思想:

哥德巴赫猜想:任一大于2的偶数都可写成两个质数之和。

AC代码:

#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

bool is_prime(int n){
    int tmp = sqrt(n*1.0);
    for(int i = 2; i <= tmp; i++)
        if(n%i == 0)
            return false;
    return n > 1? true: false;
}

int main(){
    int n;
    scanf("%d",&n);
    if(is_prime(n))
        printf("1\n%d\n",n);
    else if(is_prime(n-2))
        printf("2\n2 %d\n",n-2);
    else{
        n -= 3;
        for(int i = 2; ; i++){
            if(is_prime(i) && is_prime(n-i)){
                printf("3\n3 %d %d\n",i,n-i);
                break;
            }
        }
    }
    return 0;
}

5.Anton and Ira(置换群)


题目链接:

http://codeforces.com/problemset/problem/584/E

解题思路:

We can consider that we pay 2|i - j| coins for swap (we can divide answer in the end). Then we can consider that we pay |i - j| coins for moving pi and |i - j| for moving pj. So, if x was on position i and then came to position j, then we will pay at least |i - j| coins. Then the answer is at least  (pp — position k in permutation p, and ps — position k in permutation s). Let's prove that this is the answer by showing the algorithm of making swaps.

Let's consider that permutation s is sorted (our task is equal to it). Then we will put numbers from n to 1 on their positions.

How we can put n on its position? Denote ppos = n. Let's prove that there exists a position pos2 such that pos < pos2 andppos2 ≤ pos(then we will swap ppos2 with n (and both numbers will move to their final positions and n will move to the right, so we can repeat this process until n returns to its position)). We can note that there are only n - pos positions that are bigger than pos. And how many numbers on these positions can be bigger than pos? We can say that answer is n - pos, but it's incorrect, because n is bigger thanpos, but posn ≤ pos. Now we can use Pigeonhole principle and say that position x, such that x > pos and px ≤ pos exists.

But now our algorithm is O(n3). How we can put n in its position in O(n) operations? Let's move the pointer to the right while number is bigger than pos. Then swap n with found number. After we can move pointer from new n's position, so pointer always moves to the right and will not do more then n steps.

题目大意:

给你一个1-n的排列,让你通过交换i,j变成另外一个1-n的排列,交换的代价为abs(i-j)。问你最小代价,然后输出交换的步骤。

AC代码:

#include <bits/stdc++.h>
using namespace std;

typedef pair<int,int> P;

const int N = 2005;
int a[N];
int b[N];
int pos1[N];
int pos2[N];
vector<P> res;
vector<P>::iterator it;

int main(){
    int n;
    scanf("%d",&n);
    for(int i = 1; i <= n; i++)
        scanf("%d",&a[i]);
    for(int i = 1; i <= n; i++){
        scanf("%d",&b[i]);
        pos1[b[i]] = i;
    }
    int ans = 0;
    for(int i = 1; i <= n; i++){
        a[i] = pos1[a[i]];
        pos2[a[i]] = i;
    }
    for(int num = n; num >= 1; num--){
        int pos = pos2[num];
        if(pos == num)
            continue;
        for(int i = pos; i <= num; i++){
            if(a[i] <= pos){
                ans += i - pos;
                swap(pos2[a[i]], pos2[a[pos]]);
                swap(a[i], a[pos]);
                res.push_back(P{i, pos});
                pos = i;
            }
        }
    }
    printf("%d\n",ans);
    printf("%d\n",res.size());
    for(it = res.begin(); it != res.end(); it++)
        printf("%d %d\n", (*it).first, (*it).second);
}


【机械故障诊断】基于VMD分解与故障频率匹配的复合故障分离方法:MATLAB实现与智能运维应用 MATLAB 轴承复合故障分离|VMD分解与故障频率匹配 内容概要:通过结合变分模态分解(VMD)与理论故障频率匹配技术,实现对滚动轴承复合故障的自适应分离与精准诊断。该方法首先对振动信号进行稳健预处理,再通过参数寻优的VMD实现频带自适应分解,随后利用包络解调提取各模态的冲击周期,并基于轴承几何参数和转速计算理论故障频率。通过基频、倍频与边带的多证据匹配策略,将模态与外圈、内圈、滚动体、保持架等具体故障类型关联,支持共享模态的复合故障重构,最终输出各故障类型的独立分量与诊断结果。该方案提升了复杂工况下弱故障的识别能力与诊断的可解释性。; 适合人群:具备一定信号处理与机械故障诊断基础知识,从事工业设备状态监测、智能运维系统开发或相关算法研究的研发人员。; 使用场景及目标:①应用于电机、泵组、风电、轨道交通等领域的轴承复合故障诊断;②解决强弱故障共存、频率重叠导致的掩蔽问题,实现多故障的分离与识别;③为设备的智能运维、健康管理和剩余寿命预测提供可靠的故障分量数据与诊断依据; 阅读建议:此资源以MATLAB R2025b为实现平台,提供了完整的算法流程、代码示例与GUI界面。建议使用者在实践中重点关注参数搜索策略、多证据匹配的实现细节以及共享模态重构的逻辑,并结合实际工程数据进行验证和调优。 立即下载

相关推荐

TC8测试TCP-UNACCEPTABLE-04/006

TC8测试TCP-UNACCEPTABLE-04/006

Codeforces Round #346 (Div. 2) (659A,659B,659C,659D(几何叉乘),659E(并查集))

Round House 题目链接: http://codeforces.com/problemset/problem/659/A 解题思路: The answer for the problem is calculated with a formula ((a - 1 + b)  n + n)  n + 1. Such solution has complexity

piaocoder 1857

PSIM-串联谐振半桥LLC开关电源+PFM变频闭环控制【仿真+计算书+参考文献】

内容概要:本文档系统性地整合了电力电子与控制系统仿真领域的丰富资源,聚焦于基于PSIM和Simulink平台的串联谐振半桥LLC开关电源建模与仿真,深入探讨PFM变频闭环控制策略的设计与实现。内容涵盖LLC谐振变换器的工作原理、关键参数设计、开环与闭环仿真模型构建、软开关技术(ZVS/ZCS)、恒压恒流双竞争控制机制以及调频控制等核心技术,配套提供完整的仿真文件、计算书和参考文献,有助于深入理解高频开关电源系统的动态响应特性与稳定性分析方法。此外,文档还汇集了大量拓展性仿真资源,涉及双向DC-DC变换器、PWM整流器、PFC电路、储能系统、微电网优化、DAB变换器、并网逆变器等多个方向,构成一套完整的科研与工程实践参考资料体系。; 适合人群:适用于电力电子、电气工程及其自动化等相关专业的高校本科生、研究生,以及从事开关电源设计、新能源系统开发、电力变换器研发等工作的工程技术人员。; 使用场景及目标:①深入学习LLC谐振变换器的拓扑结构与闭环控制原理;②掌握PSIM/Simulink在电力电子系统中的高精度建模与仿真技能;③为科研项目、学位论文或产品开发提供可复用的技术方案与代码基础;④深化对PFM控制、软启动过程、ZVS/ZCS实现机制及系统稳定性的理解; 阅读建议:建议结合文档中提供的仿真模型与计算书进行同步操作,优先剖析主电路拓扑与控制逻辑架构,再逐步开展参数调节与仿真验证实验,同时可参考所列相关资源拓展技术视野,提升综合设计能力。

April Fools Day Contest 2016 (656A,656B,656C,656D,656E,656F)

Da Vinci Powers 题目链接: http://codeforces.com/problemset/problem/656/A 解题思路: This problem asked to figure out an integer sequence from two samples and problem title. It turned out to be surprising

piaocoder 1437

Windows开发工具环境管理:Git、Node.js、Python多版本与PATH冲突排查 - 配套实验资源

本资源是《Windows开发工具环境管理:Git、Node.js、Python多版本与PATH冲突排查》的配套实验工具,适用于 Windows PowerShell 5.1 和 PowerShell 7,帮助开发者排查 Git、Node.js、Python、Codex 等工具的多版本共存、PATH 配置异常及命令优先级冲突问题。 **资源包含两个 PowerShell 脚本:** 1. **Get-ToolchainInventory.ps1**:只读环境诊断工具,可列出开发工具的命令候选路径,检查 PATH 目录、重复条目及无效路径。不执行开发工具,也不修改系统配置。 2. **Invoke-PathPrecedenceLab.ps1**:PATH 优先级演示工具,在系统临时目录中生成测试命令,通过临时调整当前进程的 PATH,直观展示 Windows 命令查找与优先级规则。实验结束后自动恢复 PATH 并清理自身创建的临时文件。 **资源特点:** - 兼容 Windows PowerShell 5.1 和 PowerShell 7。 - 支持开发工具路径盘点与 PATH 冲突分析。 - 提供可重复的命令优先级实验。 - 不修改注册表、系统级或用户级环境变量。 - 不卸载软件、不安装依赖、不执行包管理器。 - 适合 Windows 开发环境排查、PowerShell 学习与技术教学。 **使用说明:** 下载后建议先审查脚本,再按照配套文章中的 PowerShell 命令运行。脚本已完成静态检查与打包,尚未经过 Windows 实机执行验证。 **安全提示:** 诊断结果可能包含个人或组织目录信息,公开分享前请脱敏。若受到 PowerShell 执行策略限制,应采用符合环境安全要求的授权方式运行,不建议全局关闭安全限制。

LabVIEW事件结构避坑指南:为什么你的‘确定按钮’事件有时会失灵?

本文深入探讨了LabVIEW事件结构中'确定按钮'事件失灵的常见原因及解决方案。从事件队列机制到事件类型选择,详细分析了事件丢失的五大原因,包括事件处理耗时过长、事件类型选择不当等,并提供了优化登录界面案例的实用建议。掌握这些技巧可显著提升LabVIEW用户界面的响应可靠性。

weixin_42548888的博客 353

Codeforces Round #323 (Div. 2) (583A,583B,582A,582B)

1.Asphalting Roads 题目链接: http://codeforces.com/problemset/problem/583/A 解题思路: To solve the problem one could just store two arrays hused[j] and vused[j] sized n and filled with false initial

piaocoder 1192

基于docker进行安装部署seata,解决Seata的版本与Nacos的版本不匹配

本文分享了在Docker环境下部署Seata时遇到Nacos 3.x API不兼容问题的解决方案。由于Seata 2.0.0内置的nacos-client 1.4.2无法调用Nacos 3.x重构后的接口,导致注册失败。通过下载Seata 2.6.0源码自行构建Docker镜像,并调整启动方式(直接执行Java命令绕过Shell脚本),最终成功实现与Nacos 3.x的集成。关键步骤包括:创建自定义Dockerfile、配置application.yml、处理启动脚本兼容性问题,最终采用java直接运行方案

Dd52698的博客 406

Codeforces Round #340 (Div. 2) (629A,629B,629C(排列组合,动态规划),629D(线段树))

Far Relative’s Birthday Cake 题目链接: http://www.codeforces.com/problemset/problem/629/A 解题思路: Consider that we have rowi chocolates in the i'th row and coli chocolates in the i'th column.

piaocoder 1177

别再只会按按钮了!用NanoStat开源项目学ESP32硬件设计:BOOT与自动下载电路的避坑指南

本文通过NanoStat开源项目深入解析ESP32硬件设计中BOOT与自动下载电路的关键技术。从启动机制、电路设计陷阱到三极管选型,提供了一套完整的避坑指南和优化方案,帮助开发者提升设计可靠性和烧录效率。特别适合中级开发者学习ESP32硬件设计的精髓。

weixin_30296405的博客 439

dolphinscheduler-3.4.0

dolphinscheduler集群部署

docsz的博客 660

Codeforces Round #326 (Div. 2) (588A,588B,587A)

1.Duff and Meat 题目链接: http://codeforces.com/problemset/problem/588/A 解题思路: Idea is a simple greedy, buy needed meat for i - th day when it's cheapest among days 1, 2, ..., n. So, th

piaocoder 1061

十九、帧间预测编码_2、解码、显示顺序与图像管理、参考帧管理

一、基本概念 1.1H.264的解码顺序和显示顺序: 解码过程中,每一帧的数据按照相应的NAL Unit在码流中的顺序传入解码器进行解码 由于B帧的存在,视频帧在输出时会进行顺序重排 1.2frame_num与POC frame_num:表示解码顺序 POC:表示显示顺序(picture_order_count) 在H.264的码流中,表示解码顺序和显示顺序分别有相应的语法元素表示。这两个值都会在码流中保存,并在读取slice信息时解析(SliceHeader中) 1.3参考帧列表 某一帧图像在解

叮咚的博客 1328

Codeforces Round #329 (Div. 2) (593A,593B,593C,593D)

2Char 题目链接: http://codeforces.com/problemset/problem/593/A 解题思路: For each letter will maintain the total length of words (cnt1ci), which found it was alone, and for each pair of letters wi

piaocoder 990

34、婴儿监视器应用开发指南

本文详细介绍了基于 ESP32 和 Edge Impulse 开发婴儿监视器应用的全过程,涵盖音频处理、机器学习推理、ESP RainMaker 平台集成以及内存监控等功能。通过实现 AppAudio、AppRmaker 和 AppMem 三个核心类,完成了婴儿哭声的实时检测与远程通知,并通过合理的内存管理优化,有效节省了 ESP32 的内部 RAM 资源。文章还提供了完整的代码示例和配置说明,适用于物联网和嵌入式 AI 应用开发爱好者参考学习。

python9snake的博客 93

EMC设计技巧及经验总结3:TVS的使用

Way back in undergrad circuits class(回到本科时的电路课程), our TA(助教) loved to give uslittle “black box” circuits. We’d measure the voltage and current characteristics, then have to determine what compone

snmplink的博客 2410

Codeforces Round #340 (Div. 2) (617A,617B,617C,617D(Constructive ),617E(莫队算法))

比赛的时候由于入了一道题的坑,而且一直没爬出来。。。 Elephant 题目连接: http://codeforces.com/contest/617/problem/A 解题思路: It's optimal to do the biggest possible step everytime. So elephant should do several steps by distan

piaocoder 969

微信小程序 - {“errMsg”:”requestPayment:fail banned”} 微信小程序调用wx.requestPayment支付失败返回错误(uniapp微信小程序微信支付报错)

{“errMsg”:”requestPayment:fail banned”},微信小程序调用wx.requestPayment报错requestPayment:fail banned,uni-app微信小程序wx.requestPayment支付报错requestPayment:fail banned,拉起小程序支付报错,iPhone苹果ios真机微信支付报错,Android安卓手机微信支付报错,支付报错,商户配置,签名验证,uniapp 小程序支付微信支付一场,设置过b2b类目,确认了商户号相关功能正常

🏆 前端领域优质创作者 3339

Codeforces Round #325 (Div. 2) (586A,586B,585A,585B)

1.Alena's Schedule 题目链接: http://codeforces.com/problemset/problem/586/A 解题思路: To solve this problem one should remove all leading and trailing zeroes from array and then calculate the nu

piaocoder 963

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版

Part-E1-SDIO-Specification-Ver4.00-Final-120220.pdf:最新的sdio 4.0 spec 协议标准 带书签 高清完整PDF版,包括SDIO 接口的外设,SDIO 接口官方协议等。

8VC Venture Cup 2016 - Elimination Round (626A,626B,626C(二分),626D(概率))

Robot Sequence 题目连接: http://codeforces.com/problemset/problem/626/A 解题思路: We can simulate Calvin’s path on each substring, and check if he returns to the origin. Runtime: O(n3) AC代码: #i

piaocoder 942

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

Codeforces Round #317 (Div. 2) (572A Arrays,572B Order Book)

1.572A Arrays 题目链接: http://codeforces.com/problemset/problem/572/A 解题思路: 取第一个数列的第k个数,然后倒着取第二个数列的第m个数,比较即可。。。 AC代码: #include #include #include using namespace std; int a[100005]; int b[10

piaocoder 872

android 蓝牙通讯demo

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

Codeforces Round #365 (Div. 2) (703A,703B(容斥),703C(几何),703D(树状数组))

Mishka and Game 题目链接: http://codeforces.com/problemset/problem/703/A 解题思路: In this problem you had to do use the following algo. If Mishka wins Chris in the current round, then increase variable

piaocoder 800

Codeforces Round #330 (Div. 2) (595A,595B(容斥原理))

Vitaly and Night 题目链接: http://codeforces.com/problemset/problem/595/A 解题思路: It was easy realization problem. Let's increase the variable i from 1 to n, and inside let's increase the variable

piaocoder 748

Codeforces Round #340 (Div. 2) (618A,618B,618C)

Slime Combining 题目链接: http://codeforces.com/problemset/problem/618/A 解题思路: We can simulate the process described in the problem statement. There are many possible implementations of this, so s

piaocoder 666

Codeforces Round #328 (Div. 2) (592A,592B,592C,592D)

PawnChess 题目链接: http://codeforces.com/problemset/problem/592/A 解题思路: Player A wins if the distance of his nearest pawn to the top of the board is less than or equal to the distance of the Player

piaocoder 615
上一篇: Codeforces Round #325 (Div. 2) (586A,586B,585A,585B)
下一篇: Codeforces Round #259(454A,454B,453A(排列组合))
yphacker
博客等级 码龄12年 199粉丝 540原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值