码迷,mamicode.com
首页 >  
搜索关键字:c. kyoya and colored    ( 385个结果
Leetcode 75. Sort Colors
https://leetcode.com/problems/sort-colors/ Medium Medium Medium Given an array with n objects colored red, white or blue, sort them in-place so that o ...
分类:其他好文   时间:2019-08-19 19:33:38    阅读次数:98
Codeforces A. Kyoya and Colored Balls(分步组合)
题目描述: Kyoya and Colored Balls time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Kyoya Ooto ...
分类:其他好文   时间:2019-08-11 23:19:44    阅读次数:105
CF1198E Rectangle Painting 2
题目 There is a square grid of size $n×n$. Some cells are colored in black, all others are colored in white. In one operation you can select some rectan ...
分类:其他好文   时间:2019-08-10 17:47:49    阅读次数:100
计蒜客 Red Black Tree(树形DP)
You are given a rooted tree with n nodes. The nodes are numbered 1..n. The root is node 1, and m of the nodes are colored red, the rest are black. You ...
分类:其他好文   时间:2019-08-04 22:26:07    阅读次数:187
POJ2513 【并查集+欧拉路径+trie树】
题目链接:http://poj.org/problem?id=2513 Colored Sticks Time Limit: 5000MS Memory Limit: 128000K Total Submissions:40949 Accepted: 10611 Description You ar ...
分类:其他好文   时间:2019-08-03 21:16:57    阅读次数:103
POJ2513(欧拉回路+并查集+字典树)
Colored Sticks 题目链接:https://vjudge.net/problem/POJ-2513 题目大意: candidate19有好多根棍子,这些棍子的两端分都别涂了一种颜色。 candidate19突然有了一个疑问,就是他手里的这些棍子能否互相拼接,从而形成一条直线呢? 两根棍子 ...
分类:其他好文   时间:2019-07-27 17:01:35    阅读次数:110
I - Red and Black DFS
There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he c ...
分类:其他好文   时间:2019-07-25 00:55:44    阅读次数:150
CodeForces - 1114D Flood Fill (区间dp)
You are given a line of nn colored squares in a row, numbered from 11 to nn from left to right. The ii-th square initially has the color cici. Let's s ...
分类:其他好文   时间:2019-07-24 21:09:13    阅读次数:116
POJ 1979 Red and Black
Description There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From ...
分类:其他好文   时间:2019-07-16 20:05:48    阅读次数:148
37.Sort Colors(颜色排序)
Given an array with *n* objects colored red, white or blue, sort them **in-place** so that objects of the same color are adjacent, with the colors in ... ...
分类:编程语言   时间:2019-06-24 00:31:49    阅读次数:123
385条   上一页 1 2 3 4 5 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!