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
题目描述: 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
题目 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
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
题目链接: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
Colored Sticks 题目链接:https://vjudge.net/problem/POJ-2513 题目大意: candidate19有好多根棍子,这些棍子的两端分都别涂了一种颜色。 candidate19突然有了一个疑问,就是他手里的这些棍子能否互相拼接,从而形成一条直线呢? 两根棍子 ...
分类:
其他好文 时间:
2019-07-27 17:01:35
阅读次数:
110
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
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
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
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