Hello,
I have problem with implementation of algorithm for the shortest path in weighted graph, where complexity depends also on the maximum weight of the edges. In Cormen's 'Introduction to algorithms' I found, that Ahuja, Mehlhorn, Orlin and Tarjan described it in their 'Faster algorithms for the ...
Search found 5 matches
- Fri Dec 24, 2004 10:12 pm
- Forum: Algorithms
- Topic: Tarjan's implementation of Dijkstra's algorithm
- Replies: 1
- Views: 1708
- Wed Feb 04, 2004 11:08 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31723
- Wed Feb 04, 2004 9:56 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31723
- Wed Feb 04, 2004 8:08 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31723
- Wed Feb 04, 2004 5:06 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10622 - Perfect P-th Powers
- Replies: 47
- Views: 31723
10622 (perfect p-th powers)
I don't get it. I thought this problem is quite easy but I'm still getting wrong answer. What am I doing not in the proper way?
program p10622(input, output);
var x : cardinal;
procedure check(x : cardinal);
var j : cardinal; i,k,nr,max : cardinal;
begin
max := 1;
for i := 2 to round(sqrt(x)) do ...
program p10622(input, output);
var x : cardinal;
procedure check(x : cardinal);
var j : cardinal; i,k,nr,max : cardinal;
begin
max := 1;
for i := 2 to round(sqrt(x)) do ...