随笔分类 - DFS
摘要:public class Solution { public List> combinationSum(int[] candidates, int target) { List> ret=new ArrayList>(); Arrays.sort(candidates); generateCombination(new ArrayList(...
阅读全文
摘要:Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 4872Accepted: 2507DescriptionWhen a radio station is broadcasting over a very large area, repeaters are used to retransmit the signal so that e...
阅读全文
摘要:Time Limit: 2000MSMemory Limit: 65536KTotal Submissions: 5414Accepted: 2567Special JudgeDescriptionSudoku is a very simple task. A square table with 9 rows and 9 columns is divided to 9 smaller square...
阅读全文
摘要:Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 1307 Accepted: 764DescriptionYou have just been put in charge of developing a new shredder for the Shredding Company Alt...
阅读全文
摘要:Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 6342Accepted: 3061Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数...
阅读全文
摘要:Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2792Accepted: 1127DescriptionOn Planet MM-21, after their Olympic games this year, curling is getting popular. But the rules are somewhat diffe...
阅读全文
摘要:Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 2934Accepted: 1418DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze ...
阅读全文
摘要:Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 7832Accepted: 2671DescriptionBackground The knight is getting bored of seeing the same black and white squares again and again and has decided ...
阅读全文

浙公网安备 33010602011771号