![](https://img-blog.csdnimg.cn/20190927151132530.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
科协算法作业
文章平均质量分 85
.
cjz-lxg
小白
展开
-
D. Kilani and the Game
Problem - 1105D - Codeforceshttps://codeforces.com/problemset/problem/1105/DD. Kilani and the Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputKilani is playing a game with his fr原创 2022-02-21 21:18:23 · 131 阅读 · 0 评论 -
Phillip and Trains CodeForces - 585B (DFS)
Problem - 585B - Codeforceshttps://codeforces.com/problemset/problem/585/BThe mobile application store has a new game called "Subway Roller".The protagonist of the game Philip is located in one end of the tunnel and wants to get out of the other one. T原创 2022-02-16 11:19:24 · 243 阅读 · 0 评论 -
Kefa and Park CodeForces - 580C
Problem - 580C - CodeforcesKefa decided to celebrate his first big salary by going to the restaurant.He lives by an unusual park. The park is a rooted tree consisting ofnvertices with the root at vertex1. Vertex1also contains Kefa's house. Unfortu...原创 2022-02-14 00:22:28 · 195 阅读 · 0 评论 -
D - Fox And Two Dots CodeForces - 510B
Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of sizen × mcells, like this:Each cell contains a dot that has some color. We will use different uppercase Latin characters to express different colors..原创 2022-02-12 11:40:27 · 253 阅读 · 0 评论 -
Belted Rooms CodeForces - 1428B
Problem - 1428B - Codeforceshttps://codeforces.com/problemset/problem/1428/BIn the snake exhibition, there arennrooms (numbered00ton - 1n−1) arranged in a circle, with a snake in each room. The rooms are connected bynnconveyor belts, and theii-th...原创 2022-02-11 16:57:26 · 576 阅读 · 0 评论 -
Rumor CodeForces - 893C
Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newest game, World of Farcraft, and it became really popular. Of course, Vova started playing it.Now he tries原创 2022-01-25 21:40:56 · 110 阅读 · 0 评论 -
Badge CodeForces - 1020B
Badge - CodeForces 1020B - Virtual Judgehttps://vjudge.net/problem/CodeForces-1020BIn Summer Informatics School, if a student doesn't behave well, teachers make a hole in his badge. And today one of the teachers caught a group ofnnstudents doing yet an..原创 2022-01-25 18:48:55 · 151 阅读 · 0 评论 -
Mike and Feet CodeForces - 547B
https://vjudge.net/problem/CodeForces-547Bhttps://vjudge.net/problem/CodeForces-547BMike is the president of country What-The-Fatherland. There arenbears living in this country besides Mike. All of them are standing in a line and they are numbered from..原创 2022-01-23 20:09:15 · 80 阅读 · 0 评论 -
Mike and Feet CodeForces - 547B
Mike and Feet - CodeForces 547B - Virtual Judgehttps://vjudge.net/problem/CodeForces-547BMike is the president of country What-The-Fatherland. There arenbears living in this country besides Mike. All of them are standing in a line and they are numbered..原创 2022-01-22 10:13:23 · 333 阅读 · 0 评论 -
Poisoned Dagger CodeForces - 1613C
Poisoned Dagger - CodeForces 1613C - Virtual Judgehttps://vjudge.net/problem/CodeForces-1613CMonocarp is playing yet another computer game. In this game, his character has to kill a dragon. The battle with the dragon lasts100^{500}100500seconds, during..原创 2022-01-20 16:06:58 · 315 阅读 · 0 评论 -
Replace To Make Regular Bracket Sequence CodeForces - 612C
Replace To Make Regular Bracket Sequence - CodeForces 612C - Virtual Judgehttps://vjudge.net/problem/CodeForces-612CYou are given stringsconsists of opening and closing brackets of four kinds<>,{},[],(). There are two types of brackets: openi...原创 2022-01-18 10:40:24 · 183 阅读 · 0 评论 -
A - Hotelier
Amugae has a hotel consisting of1010rooms. The rooms are numbered from00to99from left to right.The hotel has two entrances — one from the left end, and another from the right end. When a customer arrives to the hotel through the left entrance, they...原创 2022-01-18 09:25:53 · 169 阅读 · 0 评论 -
C. Balanced Team
C. Balanced Teamtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are a coach at your local university. There arennstudents under your supervision, the programming skill of theii-...原创 2022-01-16 21:44:55 · 777 阅读 · 0 评论 -
周五测试题
周五那天,学长出了个题目,我就不粘贴题目了,简述下题目的大致思路Input第一行给出一个整数n,第二行给定n个整数,第三行给定一个整数a,接下来a行表示挑选第二行中第几个编号的数字Output输出a行,每行输出表示当每次挑选完一个数后剩余数的中位数的大小我开始这道题是直接不断快排暴力做的,不过提交的时候超时了,然后学长发了答案,不得不说,我该好好学数据结构了#include<iostream>using namespace std;#include<strin原创 2022-01-16 09:50:14 · 365 阅读 · 0 评论 -
Update Files CodeForces - 1606B
Berland State University has received a new update for the operating system. Initially it is installed only on the11-st computer.Update files should be copied to allnncomputers. The computers are not connected to the internet, so the only way to trans...原创 2022-01-12 11:38:25 · 306 阅读 · 0 评论 -
Array Splitting CodeForces - 1197C
You are given asortedarraya_1, a_2, \dots, a_na1,a2,…,an(for each indexi > 1i>1conditiona_i \ge a_{i-1}ai≥ai−1holds) and an integerkk.You are asked to divide this array intokknon-empty consecutive subarrays. Every element in the arr...原创 2022-01-13 20:11:13 · 377 阅读 · 0 评论 -
A and B and Compilation Errors
A and B are preparing themselves for programming contests.B loves to debug his code. But before he runs the solution and starts debugging, he has to first compile the code.Initially, the compiler displayedncompilation errors, each of them is represen..原创 2022-01-11 21:03:56 · 222 阅读 · 0 评论