![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
codeforces
weixin_45679666
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #704 (Div. 2)
A. Three swimmers 题意: 三位游泳运动员在游泳 ,其游完游泳池的时间分别为b,c,d;当某人a时间去游泳池的左边,问他多久后能遇到第一个运动员。 题解: 1>该人到达游泳池的时间等于三位运动员某位的时间或取余某位运动员的时间为0时,其不需要等待。 2>计算分别该人需要等待的时间 ,取最小值 #include<iostream> #include<algorithm> #include<map> #include<stdio.h>原创 2021-03-16 08:59:33 · 47 阅读 · 0 评论 -
Codeforces Round #706 (Div. 2)
Codeforces Round #706 (Div. 2) 链接:https://codeforces.ml/contest/1496 A. Split it! 题意:`` 题解: 1、k==0时,一定能找到; 2、判断s下标从0开始,只需判断第【0,k-1】与【n-k,n-1】区间内是否是一个回文字符串 3、其他不符合 代码: `string s; int t,n,k; int fun() { for(int i=0,j=n-1;i<k;i++,j--) if(s[i]!=原创 2021-03-13 22:20:30 · 101 阅读 · 0 评论