Search found 5 matches

by MSH
Thu Oct 29, 2009 8:21 pm
Forum: Volume 116 (11600-11699)
Topic: 11693 - Speedy Escape
Replies: 7
Views: 3509

Re: 11693 - Speedy Escape

getting WA in this prob. i used dijkstra. my procedure is 1)for all 'e' calculate the distance between police and highway exit and also between brothers and highway exit. while calculating the distance between brothers and highway exit i didn't use the node where the police starts. 2) if the the br...
by MSH
Thu Sep 18, 2008 1:44 pm
Forum: ACM ICPC Archive Board
Topic: 4094 - WonderTeam
Replies: 1
Views: 4369

Re: 4094 - WonderTeam

Just take it easy! there is a simple solution to this problem. Of course finding this solution is not so simple, where in the contest, the first accepted solution was after 62 minutes and there was only 14 accepted solution from about 90 teams. for any N > 4 you can find a way that the wonder team's...
by MSH
Mon Sep 01, 2008 3:23 pm
Forum: Volume 109 (10900-10999)
Topic: 10922 - 2 the 9s
Replies: 38
Views: 14238

Re: WA: 10922 - 2 the 9s

saiful_sust wrote:thanks 4 ur reply
BUT?????

i don't understand it..
how it is ans 3.
99999999999
Sum1 = 99
Sum2 = 18
Sum3 = 9
So it has 9-degree 3.
by MSH
Sat Aug 30, 2008 8:27 pm
Forum: Volume 113 (11300-11399)
Topic: 11347 - Multifactorials
Replies: 7
Views: 3743

11347 - Multifactorials, RTE

Hi, I can't find why it gives run time error. I checked it for many cases and it hasn't any problem for those cases. May anyone help me?! This is my code got Run Time Error #include <iostream> #include <cmath> #include <string> #include <sstream> #include <vector> using namespace std; #define Max 10...
by MSH
Sat Aug 30, 2008 7:42 pm
Forum: Volume 109 (10900-10999)
Topic: 10922 - 2 the 9s
Replies: 38
Views: 14238

Re: 10922 - 2 the 9s

Try this input :
99999999999
Your program gives :
99999999999 is a multiple of 9 and has 9-degree 2.
But the answer is :
99999999999 is a multiple of 9 and has 9-degree 3.
I hope it helps you to correct your code!

Go to advanced search