Search found 78 matches

by raj
Tue Oct 07, 2014 7:20 am
Forum: Volume 7 (700-799)
Topic: 796 - Critical Links
Replies: 54
Views: 22489

Re: 796 - Critical Links

I dont know why sometimes question are not clear in question: "The links are listed in ascending order according to their first element." so it mean if the critical links are (4 - 2) , (1 - 2) , (1 - 5) ans could be: (1-2) (1-5) (4-2) OR (1-2) (1-5) (2-4) OR (1-5) (1-2) (4-2) OR (1-5) (1-2) (2-4) OR...
by raj
Tue Sep 09, 2014 8:33 pm
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9899

Re: 11517 - Exact Change

All the random inputs works fine but getting wrong answer..
by raj
Mon Sep 08, 2014 2:47 am
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9899

Wrong Answer: 11517 - Exact Change

Need Help Getting "Wrong Asnwer" :( import java.io.*; import java.util.*; public class Main{ public static BufferedReader k; public static int [] coins; public static Pair [][] dp; public static boolean [][] marked; public static int cap; public static Pair rec(int i,int value,int NoOfCoin){ if(i>=c...
by raj
Fri Sep 05, 2014 12:10 am
Forum: Volume 108 (10800-10899)
Topic: 10819 - Trouble of 13-Dots
Replies: 67
Views: 36207

TLE: 10819 - Trouble of 13-Dots

Need Help. :( Getting Time Limit Exceeded import java.io.*; import java.util.*; public class Main{ public static BufferedReader k; public static int dp[][]; public static int[] weight,value; public static int budget; public static int knapSack(int i,int w){ if(i==weight.length){ return 0; } else{ in...
by raj
Thu Sep 04, 2014 11:59 pm
Forum: Volume 115 (11500-11599)
Topic: 11517 - Exact Change
Replies: 33
Views: 9899

Wrong Answer: 11517 - Exact Change

Need Help :( Getting 'Wrong Answer' import java.io.*; import java.util.*; public class Main{ public static BufferedReader k; public static int [] coins; public static Pair [][] dp; public static boolean [][] marked; public static int cap; public static Pair rec(int i,int value,long NoOfCoin){ if(i>=...
by raj
Wed Sep 03, 2014 5:40 pm
Forum: Volume 108 (10800-10899)
Topic: 10819 - Trouble of 13-Dots
Replies: 67
Views: 36207

Re: 10819 - Trouble of 13-Dots

Is this problem solvable with top-bottom techniques? If not then why?
by raj
Sat Jul 26, 2014 10:31 am
Forum: Volume 107 (10700-10799)
Topic: 10793 - The Orc Attack
Replies: 35
Views: 19583

Re: 10793 - The Orc Attack

Re: 10793 - The Orc Attack
Postby spewer » Fri Dec 30, 2011 9:47 pm
Hey try this input i think is the critical one
This is invalid input because no. of location, L should be greater than 5.
by raj
Fri Jul 04, 2014 7:06 pm
Forum: Volume 113 (11300-11399)
Topic: 11396 - Claw Decomposition
Replies: 12
Views: 4476

Wrong Answer : 11396 - Claw Decomposition

Need Help :( I am getting Wrong Answer

My Logic: For every connected components there will two independents set of size 3 then answer will be YES
otherwise NO.

am i right?
by raj
Sun Jun 22, 2014 11:21 pm
Forum: Volume 119 (11900-11999)
Topic: 11902 - Dominator
Replies: 20
Views: 9142

Question: 11902 - dominator

ok Sir i got the point and my code is accepted by running DFS n-1 time.. But two things i just want to know 1) i didn't consider self-loop is it ok? 2) suppose, we want to find out is x dominates y? if y is NOT reachable from the start node(0th) then y does not have any dominator so according to me ...
by raj
Wed Jun 18, 2014 9:53 pm
Forum: Volume 127 (12700-12799)
Topic: 12754 - Display Problem
Replies: 8
Views: 1542

Re: 12754 - Display Problem

Edited..
oops i,m sorry brain fry is right
There is also a tricky case if D<0 then it will be Bad :)
by raj
Mon Jun 09, 2014 7:33 pm
Forum: Volume 119 (11900-11999)
Topic: 11902 - Dominator
Replies: 20
Views: 9142

Question: 11902 - dominator

I have a question here
if the 0th node is the start node then if the graph is disconnected then is it will be all the connected components of the graph 1st random node is the start node?
by raj
Thu Jun 05, 2014 8:08 pm
Forum: Volume 126 (12600-12699)
Topic: 12619 - Just Make A Wish
Replies: 5
Views: 2332

RUN TIME ERROR: 12619 - Just Make A Wish

Deleted...
by raj
Sat Feb 22, 2014 3:42 am
Forum: Volume 114 (11400-11499)
Topic: 11492 - Babel
Replies: 18
Views: 10474

Re: 11492 - Babel

I am getting Runtime Error. Is there a problem in the test cases ? while(true) is not an actual way as sir brainfry mentioned that if 4000 lines than what happened? in the case of while(true) that means user take input infinite number of times that will not happen when a computer cheque your code. ...
by raj
Fri Feb 14, 2014 8:53 pm
Forum: Volume 101 (10100-10199)
Topic: 10171 - Meeting Prof. Miguel...
Replies: 68
Views: 24001

Re: 10171 - Meeting Prof. Miguel

Thanks a lot sir BrainFry.. :) :)

Code: Select all

//Accepted
by raj
Wed Feb 12, 2014 10:29 pm
Forum: Volume 9 (900-999)
Topic: 902 - Password Search
Replies: 68
Views: 31888

Re: 902 - Password Search

Thanks sir BrainFry for an important issue.. :)

Code: Select all

//Accepted

Go to advanced search