Search found 137 matches

by smilitude
Sat Dec 25, 2010 5:19 pm
Forum: Volume 116 (11600-11699)
Topic: 11635 - Hotel booking
Replies: 39
Views: 15100

Re: 11635--Hotel Booking

Your use of

Code: Select all

if(flag[u][h]) continue;
looks suspicious to me. You can enter a node with different minutes in hand - but i think your program will not consider all of them.
by smilitude
Fri Jan 29, 2010 7:31 am
Forum: Volume 100 (10000-10099)
Topic: 10062 - Tell me the frequencies!
Replies: 235
Views: 64267

Re: 10062 - Tell Me the Frequencies!

I can't see why I am getting WA. I tried to read the older post and got more confused. Am I missing something or there is something stupid with the dataset? #include<cstdio> #include<sstream> #include<cstdlib> #include<cctype> #include<cmath> #include<algorithm> #include<set> #include<queue> #includ...
by smilitude
Mon Oct 19, 2009 12:15 pm
Forum: Volume 113 (11300-11399)
Topic: 11380 - Down Went The Titanic
Replies: 19
Views: 12350

Re: 11380 - Down Went The Titanic

I made the same mistake, and even some more! I should have been more careful while building the graph. X( Here are some IOs. 4 5 1 *#*~. .@*## **#.# .#~#~ 13 3 1 .*@ #.# .## #.# *@~ #.@ @** @#* @.* ~@@ #~# .#* *.@ 6 5 1 @@~~* ..*.@ ~#@#. ##~~@ ##*@* @*@#* 5 7 2 @.*~~.@ *@~@~~. @@.@@## *~@@@#@ ..~~~#...
by smilitude
Tue Oct 21, 2008 9:37 am
Forum: Volume 115 (11500-11599)
Topic: 11537 - Secret Problemsetters' Union
Replies: 4
Views: 3689

11537 - Secret Problemsetters' Union

Another important thing to notice is that, at a time there will be at most 5000000 problems in the merged problem bank & at most 100000 problems in any other bank
Does that mean, I will not insert any more problems in the bank if it already has 100000 problems ?
by smilitude
Thu Jul 31, 2008 7:02 am
Forum: Volume 6 (600-699)
Topic: 615 - Is It A Tree?
Replies: 71
Views: 32837

Re: 615 - Is It A Tree?

i think you have given one extra output.
there are nine cases in your input. ;)
by smilitude
Tue Jul 01, 2008 9:33 pm
Forum: Volume 104 (10400-10499)
Topic: 10487 - Closest Sums
Replies: 89
Views: 40023

Re: 10487 - Closest Sums

for this input 3 3 5 5 1 10 the output should be Case 1: Closest sum to 10 is 10. not this Case 1: Closest sum to 10 is 8. and after correcting that your code will fail for this 3 5 6 5 1 20 which should be Case 1: Closest sum to 20 is 11. :) Best wishes! EDIT :: even if your program outputs 8 for t...
by smilitude
Thu Jun 26, 2008 1:21 pm
Forum: Volume 105 (10500-10599)
Topic: 10520 - Determine it
Replies: 15
Views: 10296

Re: 10520 - Determine It

i checked your program in my pc with all possible inputs. and after comparing with my ac program's output, my judge program printed

Code: Select all

Total Case 9481; passed 9481; failed 0

which astonished me! i am not sure why its not working in judge.
i used devcpp, and it works fine in my pc.
by smilitude
Thu Jun 26, 2008 11:31 am
Forum: Volume 104 (10400-10499)
Topic: 10446 - The Marriage Interview :-)
Replies: 17
Views: 11545

Re: 10446 - The Marriage Interview ;-)

i tested your program against my program for these inputs 2 -3 15 8 18 2 9 2 4 1 60 1 111 111 your program gave these outputs Case 1: 4294967294 Case 2: 65537 Case 3: 131073 Case 4: 257 Case 5: 5 Case 6: 1 while they should be Case 1: 1 Case 2: 64897 Case 3: 8361 Case 4: 109 Case 5: 4 Case 6: 60 if ...
by smilitude
Wed Jun 25, 2008 9:03 am
Forum: Volume 8 (800-899)
Topic: 825 - Walking on the Safe Side
Replies: 38
Views: 25669

Re: 825 - Walking on the Safe Side

my AC code prints 0 for that case.
i got a lots of WA for not using long long. int overflows.
and that input made me nuts for a while! :(
by smilitude
Sun Jun 22, 2008 7:20 pm
Forum: Volume 111 (11100-11199)
Topic: 11160 - Going Together
Replies: 10
Views: 6661

Re: 11160 - Going Together

i wasted half an hour in rio's 6th case 5 XX#.B #X##A # ##C #.... ##### (with an unwanted space instead of '.', which was not supposed to be there) till i understood whats going on! it should be 5 XX#.B #X##A #.##C #.... ##### yeah, it clogged up what i was doing with cin , and really crushed my spi...
by smilitude
Mon Jun 09, 2008 6:09 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 133
Views: 44517

Re: 459 - WA

just needed to tell you that there wont be any test case like

Code: Select all

1

    E     
       AB         
         CE         
           DB          
          EC  

it will be given like this

Code: Select all

1

E     
AB         
CE         
DB          
EC 

so dont worry about this type of case! ;)
by smilitude
Sun Sep 02, 2007 2:52 pm
Forum: Volume 112 (11200-11299)
Topic: 11201 - The problem of the crazy linguist
Replies: 21
Views: 12614

thanks!
i thought "how many valid words are there in the input" :P

edit : but you are telling me about probability, but they have a formula and a definition for SBC and thats different
by smilitude
Sat Sep 01, 2007 8:00 pm
Forum: Volume 112 (11200-11299)
Topic: 11201 - The problem of the crazy linguist
Replies: 21
Views: 12614

u will get wrong answer because u misunderstood the problem. In this problem u have to calculate the SBC of all the words which start with the same latter as given word( with the same length ) then find the average and have to determine the given words SBC is "below" or "above or bel...
by smilitude
Mon Jul 09, 2007 2:20 am
Forum: Volume 107 (10700-10799)
Topic: 10788 - Parenthesizing Palindromes
Replies: 17
Views: 15473

anyone getting confused with the problem statement and misof's definition, plz just re-read this lines, you'll get everything at a glance! ... we find many of the editors and spreadsheet applications using colors or emphasized fonts to show the nesting of the parenthesis structure... .... We may not...
by smilitude
Mon Jul 09, 2007 2:13 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 97496

I feeling sorry for you.. Caio Abrantes, mikehammer and cryu! and i really fear that no one can help you with it! :( i used to got a lot of invalid memory ref in this problem that i throw it away for months and suddenly oneday i found changing just one line gets ac.. all i can do for you is - re wri...

Go to advanced search