C. Road to Cinema time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya is currently at a car rental service, and he wants to reach cine...
2023-06-05编程教程Based,Codeforces,RatedEducational Codeforces Round 35 (Rated for Div. 2) https://codeforces.com/contest/911 A 模拟 #include<bits/stdc++.h> using namespace std; #define lson l,mid,rt<<1 #define rson mid+1...
2023-02-18编程教程Codeforces,div,Educational,RatedEducational Codeforces Round 43 (Rated for Div. 2) https://codeforces.com/contest/976 A #include<bits/stdc++.h> using namespace std; #define lson l,mid,rt<<1 #define rson mid+1,r,rt...
2023-02-18编程教程Codeforces,div,Educational,RatedProblem Educational Codeforces Round 60 (Rated for Div. 2) - C. Magic Ship Time Limit: 2000 mSec Problem Description Input Output The only line should contain the minimal number ...
2023-02-18编程教程Codeforces,Educational,Magic,Rated,ShipEducational Codeforces Round 60 (Rated for Div. 2) 题目链接:https://codeforces.com/contest/1117 A. Best Subsegment 题意: 给出n个数,选取一段区间[l,r],满足(al+...+ar)/(r-l+1)最大,这里l<=r,并...
2023-02-18编程教程Codeforces,div,Educational,Rated,题解Educational Codeforces Round 48 (Rated for Div. 2) C. Vasya And The Mushrooms 题目链接:https://codeforces.com/contest/1016/problem/C 题意: emmm,说不清楚,还是直接看题目吧。 题解: 这个题人...
2023-02-18编程教程CD,Codeforces,Educational,Rated,题解Educational Codeforces Round 39 (Rated for Div. 2) G 题意: 给一个序列\(a_i(1 <= a_i <= 10^{9}),2 <= n <= 200000\), 如果至多删除其中的一个数之后该序列为严格上升序列,那么称原序列为几乎...
2023-02-18编程教程Codeforces,div,Educational,RatedEducational Codeforces Round 63 (Rated for Div. 2)题解 题目链接 A. Reverse a Substring 给出一个字符串,现在可以对这个字符串进行一次翻转,问是否存在一种方案,可以使得翻转后字符串的字典序可以变小。 ...
2023-02-18编程教程Codeforces,div,Educational,Rated,题解Codeforces Educational Codeforces Round 44 (Rated for Div. 2) E. Pencils and Boxes 题目连接: http://codeforces.com/contest/985/problem/E Description Mishka received a gift of multicolored pencils ...
2023-02-18编程教程Boxes,Codeforces,Educational,Pencils,RatedCodeforces Educational Codeforces Round 44 (Rated for Div. 2) F. Isomorphic Strings 题目连接: http://codeforces.com/contest/985/problem/F Description You are given a string s of length n consistin...
2023-02-18编程教程Codeforces,Educational,Isomorphic,Rated,stringsEducational Codeforces Round 64 (Rated for Div. 2)题解 题目链接 A. Inscribed Figures 水题,但是坑了很多人。需要注意以下就是正方形、圆以及三角形的情况,它们在上面的顶点是重合的。 其余的参照样例判断...
2023-01-04站长百科Codeforces,div,Educational,Rated,题解Educational Codeforces Round 65 (Rated for Div. 2)题解 题目链接 A. Telephone Number 水题,代码如下: Code #include <bits/stdc++.h> using namespace std; typedef long long ll; const int N = 2e...
2023-01-04站长百科Codeforces,div,Educational,Rated,题解CodeForces1633 Div. 7 解析: 题目大意 给定 \(t\) 组数据。每组数据给定一个数 \(n\)(\(10\le n\le 999\))。 每次操作可以修改 \(n\) 任意一位上的数,将这一位上的数修改为 \(0\sim 9\) 之间的任意数。要求...
2022-12-21站长百科Codeforces,div,Educational,Ratedhttps://codeforc.es/contest/1697/problem/C 因为规则中,两种字符串变换都与‘b’有关,所以我们根据b的位置来进行考虑; 先去掉所有的'b',如果两字符串不相等就“NO”; 否则通过‘b'在a,b串中的位置,如果posa>...
2022-12-15站长百科Codeforces,div,Educational,problem,Rated比赛链接 A 题解 知识点:贪心。 注意到 \(m\geq n\) 时,不存在某一行或列空着,于是不能移动。 而 \(m<n\) 时,一定存在,可以移动。 时间复杂度 \(O(1)\) 空间复杂度 \(O(1)\) 代码 #include <bits/stdc...
2022-12-05站长百科Codeforces,div,Educational,Rated比赛链接 A 题解 知识点:数学。 \(4\) 位密码,由两个不同的数码组成,一共有 \(C_4^2\) 种方案。从 \(10-n\) 个数字选两个,有 \(C_{10-n}^2\) 种方案。结果为 \(3(10-n)(9-n)\)。 时间复杂度 \(O(n)\) 空间复...
2022-11-26站长百科Codeforces,div,Educational,Rated就ac了2题。。。 A题一开始题意模模糊糊的似懂非懂,然后自己按样例推出了题意,简单题很容易ac了。还是自己的英语水平太菜了。。。。 B题根据0和1的位置关系能看出来,因为0不能在1后面, 所以有00前面绝对不能...
2022-11-19技术教程Codeforces,div,Educational,Rated