想来想去,还是暴露自己真是菜如狗吧。 A,B都是模拟,Awa是题目看错。 Bwa是根本不想去想想,然后随便写,当然是wa。A - Nicholas and Permutation: 题意:给你n个元素,允许交换任意两个元素的位置,但是只有一次,然后让你求1和N的distance。 ...
转载 2016-05-26 22:22:00
24阅读
2评论
贪心 A Nicholas and Permutation 模拟+DFSB Pyramid of Glasses 设酒杯满了值为1.0,每一次暴力传递下去 尺取法(two points) C Vasya and String 从左到右维护一段连续的区间,改变次数不大于k,取最大值. BFS(方向,旋
转载 2016-05-31 14:37:00
29阅读
2评论
思路:水题,考虑和第一个和最后一个位置交换就好啦#includeusing namespace std;
原创 2023-06-09 18:20:50
50阅读
D. Theseus and labyrinthtime limit per test3 secondsdard inputoutputstandard outputTheseus has just arrived to Crete
原创 2022-08-11 16:20:01
52阅读
B. Pyramid of Glassestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMary has just graduated from one well-
原创 2022-08-15 08:50:08
152阅读
A. Nicholas and Permutationtime limit ptandard inputoutputstandard outputNicholas has an array a that con
原创 2022-08-15 08:51:15
57阅读
思路:非常恶心的BFS...相当于分了四层的图#includeusing namespace std;char rot(c
原创 2023-06-09 18:20:41
59阅读
【题链接】点击打开链接【题意】一个迷宫,每个位置都有一个字符,除了*(这个代表墙,不能通过)其他的字符都代表了一种性质,在这种字符上下一步能走到哪些方向。然后还有一种操作是花费1s的时间来旋转这个矩阵(旋转90度)!让矩阵里面的每个字符旋转到对应的字符。然后给出了一个人的初始位置和目的地位置,问你这个人能不能走到目的位置,如果能,输出走到目的位置的最短时间。如果不能的话,输出-1.
原创 2022-04-20 10:25:27
36阅读
E. The Last Fighgabytesinputstandard inputoutputstandard output100 years have passed
原创 2022-08-11 16:21:48
55阅读
C. Vasya and Stringtime limit per tesbytesinputstandard inputoutputstandard outputHigh school student Vasya got a string o
原创 2022-08-15 08:49:13
123阅读
思路:模拟一下就可以了#includeusing namespace std;int n,t;double a[15][15];void wor
原创 2023-06-09 18:20:46
40阅读
D. Theseus and labyrinth 题目连接: http://www.codeforces.com/contest/676/problem/D Description Theseus has just arrived to Crete to fight Minotaur. He fou
原创 2021-07-15 15:17:44
88阅读
A. Nicholas and Permutation 题目连接: http://www.codeforces.com/contest/676/problem/A Description Nicholas has an array a that contains n distinct integer
原创 2021-07-15 15:21:22
116阅读
B. Pyramid of Glasses 题目连接: http://www.codeforces.com/contest/676/problem/B Description Mary has just graduated from one well known University and is
原创 2021-07-15 15:21:21
97阅读
转自别人的题解:(x-k)|P(x)等价于P(k)==0分两种情况考虑如果k=0的话,谁先使得a
原创 2023-06-09 18:20:15
12阅读
Which command is used to begin a tablespace point-in-time recovery?A. Restore tablespaceB. Recover tablespaceC. Tablespace recoverD. Recover to timeE.
转载 2017-11-13 10:14:00
61阅读
2评论
C. Vasya and String 题目连接: http://www.codeforces.com/contest/676/problem/C Description High school student Vasya got a string of length n as a birthday
原创 2021-07-15 15:21:21
217阅读
High school student Vasya got a string of length n as a birthday present. This string consists of letters ‘a’ and ‘b’ only. Vasya denotes beauty of the string as the maximum length of a substring (con...
原创 2023-04-24 22:29:31
266阅读
E. The Last Fight Between Human and AI 题目连接: http://codeforces.com/contest/676/problem/E Description 100 years have passed since the last victory of t
原创 2021-07-15 15:17:43
38阅读
思路:枚举结尾,然后暴力二分就好了,用前缀和预处理一下,那么前缀和之差,
原创 2023-06-09 18:20:34
30阅读
  • 1
  • 2
  • 3
  • 4
  • 5