This file contains hidden or 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> | |
| #include <string.h> | |
| #include <vector> | |
| using namespace std; | |
| int n=0, ans=0; | |
| int tans = 0; | |
| char input; | |
| vector<int> f[50]; |
This file contains hidden or 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> | |
| #include <vector> | |
| using namespace std; | |
| int n=0, input =0, ans=0; | |
| int del=0; | |
| int root = 0; | |
| vector<int> v[55]; | |
| bool visited[55]; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <string.h> | |
| using namespace std; | |
| int n=0, input =0, ans=0; | |
| int map[501][501]; | |
| int dp[501][501]; | |
| bool visited[501][501]; | |
| int dx[4] = {0,0,1,-1}; |
This file contains hidden or 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> | |
| #include <string.h> | |
| using namespace std; | |
| int n=0, m=0, ans; | |
| int cmp = 0; | |
| int map[300][300]; | |
| int melt[300][300]; | |
| bool visited[300][300]; | |
| int dx[4] = { 0,0, 1,-1}; |
This file contains hidden or 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> | |
| #include <string.h> | |
| #include <vector> | |
| using namespace std; | |
| int input[101]; | |
| int n=0, ans = 0; | |
| bool visited[101]; | |
| bool cycle[101]; | |
| vector<int> v[101]; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <queue> | |
| using namespace std; | |
| int n=0, m=0; | |
| int map[100][100]; | |
| int dist[100][100]; | |
| bool visited[100][100]; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <queue> | |
| using namespace std; | |
| int n=0, m=0, ans=0; | |
| int map[1000][1000]; | |
| int dx[4] ={0,0,1,-1}; | |
| int dy[4] ={1,-1,0,0}; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <queue> | |
| #include <tuple> | |
| using namespace std; | |
| int n=0, m=0, dist=1; | |
| int map[1000][1000]; | |
| bool visited[1000][1000][2]; | |
| int dx[4] ={0,0,1,-1}; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <queue> | |
| #include <tuple> | |
| using namespace std; | |
| int n=0, m=0,k=0, dist=1; | |
| int map[1000][1000]; | |
| bool visited[1000][1000][11]; | |
| int dx[4] ={0,0,1,-1}; |
This file contains hidden or 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> | |
| #include <vector> | |
| #include <queue> | |
| #include <tuple> | |
| using namespace std; | |
| int n=0, m=0,k=0, dist=1; | |
| int map[1000][1000]; | |
| bool visited[1000][1000][11][2]; | |
| int dx[4] ={0,0,1,-1}; |