目录CF1197D(dp)题意:思路:代码:CF1201D(dp)题意:思路:   - 代码:CF1187(换根dp)- 题意:- 思路:- 代码:CF 1205B Shortest Cycle(最小环)- 题意:- 思路:- 代码:CF 1204D Kirk and a Binary String(思维)- 题意:- 思路:- 代码:CF 1207D N
题目链接:点击打开链接C. Chris and Roadtime limit per test2 secon
原创 2022-08-24 16:00:42
281阅读
Codeforces-1697 C: awoo’s Favorite Problem题目传送门:Codeforces-1697 C题目题目截图样例描述题目大意 的字符串 和 。每个字符串中包含三种字符:a、b、c。   现在可以做两种操作:将 字符串中的 “ab” 换成 “ba”;将 字符串中的 “bc” 换成 “cb”。问能否经过任意数量的这两种操作,将 转换为 。题目解析  首先,两个
题目链接:https://codeforces.com/problemset/problem/1099/E You are given an $n×m$ table, consisting of characters «A», «G», «C», «T». Let's call a table ni
转载 2019-01-14 00:34:00
28阅读
2评论
B. Per its official na...
原创 2023-02-07 16:51:55
120阅读
C. Covered Points Counttime limit per test3 secondsmemory limit per
原创 2023-02-07 17:01:17
92阅读
C. Smallest Wordtime limit per test1 secondmemory limit per test256 megabytesinputst
原创 2023-02-08 08:34:22
76阅读
题目链接:这里 DescriptionYour friend will enjoy shopping. She will walk through a mall along a straight street, where N individual shops (numbered from 1 to N) are aligned at regular intervals. Each shop h
原创 2022-04-19 13:59:47
185阅读
CodeForces - 659GFence DivercityTime Limit: 2000MS Memory Limit: 2621
原创 2016-04-05 18:08:08
21阅读
构造,利用二维数组a[x][0],a[x][1]分别表示x后面紧跟着的两个数,比如我先找1,然后后面是3和5,我就看3后面那俩有没有一个是5,如果是关系就确定,如果不是那说明5不在3的后面而在3的前面关系也确定,确定以后直接输出,然后依次类推。AC代码:#include <iostream>#include <cstring>#include <cstdio>
原创 2023-02-09 00:41:05
46阅读
 CodeForces - 1082E E. Increasing Frequencytime limit per test2 secon
原创 2023-02-07 16:49:06
148阅读
CodeForces - 595BPasha and PhoneTime Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64uSubmit Statught a
原创 2023-05-08 21:35:28
167阅读
首先找规律知道|s(47)-s(74)|<=1|s(47)-s(74)|==0 47474……4或 74747……7|s(47)-s(74)|==1会是4747……47或是7474……74最终由是s(4),s(7)决定View Code #include<stdio.h>#include<math.h>int main(){ int a,b,c,d; while(scanf("%d%d%d%d",&a,&b,&c,&d)!=EOF) { int i,j; if(abs(c-d)>1) { printf(&q
转载 2012-02-02 15:04:00
34阅读
2评论
A. Vasya and Booktime limit per test2 secondsmemory limit per tes
原创 2023-02-07 16:49:30
55阅读
A. A Pranktime limit per test1 secondmemory limit per test256
原创 2023-02-07 16:53:13
66阅读
题意:给定一个长度为n的
原创 2023-02-09 00:13:40
55阅读
Problem - F1 - Codeforces题目大意:给定一个长度为n的字符串,相邻的两个减号可以合并成一个加号,判断所有字串当中有多少字串在操作之后(或者不操作)加号和减号的数量一样。思路:假定减号数量为啊,加号数量为b,依照题目含义有a - 2*k ==b + k,即a - b ==3k。可能会问,题目要求是说相邻的两个减号才能合并呀,其实,假设他们都不相邻,也也就是像-+-+-+-+这
转载 2024-02-27 14:31:02
105阅读
CodeForces - 660CHard ProcessTime Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64uSubmit StatusDescriptionYou are given an array a with n
原创 2023-04-19 15:26:49
156阅读
目前国内已经有很多公司做salesforce,但是国内相关的资料确是少之又少。上个月末跳槽去了新公司,主要做的就是salesforce,不过当时想要看一些相关资料确实比较难。为了避免想要零基础学习的人少走一点弯路,所以整理一下这几天学到的简单的东西,包括登录salesforce后如何操作,如何下载配置IDE等简单入门操作。一)给大家一些链接方便学习,查找和提问。 1)salesforce
CodeForces - 582B Once Again... Time Limit: 1000MS   Memory Limit: 262144KB   64bit IO Format: %I64d & %I64u Submit Status Description You are given an array of positi
原创 2023-04-20 00:01:12
65阅读
  • 1
  • 2
  • 3
  • 4
  • 5