This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
#define i_max 2147483647 | |
int nw,sx,sy,dx,dy;//Source and destination co-ordinates | |
int dist[1001][1001]; | |
bool set[1001][1001]; | |
class Wormhole{ | |
public: | |
int x1,y1,x2,y2,cost; | |