算法题
文章平均质量分 91
双木林233
啦啦啦啦啦啦啦啦
展开
-
Valeriy and Deque CodeForces - 1180C(deque)
Valeriy and Deque Recently, on the course of algorithms and data structures, Valeriy learned how to use a deque. He built a deque filled with nn elements. The ii -th element is aiai (ii = 1,2,…,n1,2,...原创 2019-11-28 20:10:27 · 251 阅读 · 0 评论 -
Codeforces Round #661 (Div. 3) D. Binary String To Subsequences
Codeforces Round #661 (Div. 3) Binary String To Subsequences 题目链接 题意 01的无序串中,找到010101……或10101……的有序子串,并进行序号标记。 用栈没写出来,看了别人代码之后,vector写的,用栈应该也可以,还是太菜了。 #include<iostream> #include<vector> using namespace std; int t,n,m[223456]; string s; int mai原创 2020-08-09 10:39:20 · 150 阅读 · 0 评论 -
1296C Yet Another Walking Robot (Codeforces)(map)
Yet Another Walking Robot 题目链接 题意:输入一段路径,输出最短的重复段。 思路:每走一步将到达的点存入map,进行判重,并保存最小值; #include<iostream> #include<map> using namespace std; struct node{ int x,y; friend bool opera...原创 2020-02-07 17:15:28 · 206 阅读 · 0 评论 -
Codeforces Round #614 (Div. 2)C NEKO's Maze Game
NEKO's Maze Game Ice - DJ Mashiro is dead or alive NEKO#ΦωΦ has just got a new maze game on her PC! The game's main puzzle is a maze, in the forms of a 2×n rectangle grid. NEKO's task is to lead a ...原创 2020-01-20 12:38:22 · 459 阅读 · 3 评论