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 ...
Search found 5 matches
- Thu Oct 29, 2009 8:21 pm
- Forum: Volume 116 (11600-11699)
- Topic: 11693 - Speedy Escape
- Replies: 7
- Views: 4385
- Thu Sep 18, 2008 1:44 pm
- Forum: ACM ICPC Archive Board
- Topic: 4094 - WonderTeam
- Replies: 1
- Views: 5531
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 ...
for any N > 4 you can find a way that the wonder team's ...
- Mon Sep 01, 2008 3:23 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10922 - 2 the 9s
- Replies: 38
- Views: 21147
Re: WA: 10922 - 2 the 9s
99999999999saiful_sust wrote:thanks 4 ur reply
BUT?????
i don't understand it..
how it is ans 3.
Sum1 = 99
Sum2 = 18
Sum3 = 9
So it has 9-degree 3.
- Sat Aug 30, 2008 8:27 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11347 - Multifactorials
- Replies: 7
- Views: 4796
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 ...
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 ...
- Sat Aug 30, 2008 7:42 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10922 - 2 the 9s
- Replies: 38
- Views: 21147
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!
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!