-
Notifications
You must be signed in to change notification settings - Fork 0
/
maze.cpp
77 lines (60 loc) · 1.5 KB
/
maze.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef struct node{
int val;
struct node * left;
struct node * right;
} node;
int main()
{
int T;
FILE* originalStdout = stdin;
FILE* file = freopen("testLCA.txt","r",stdin);
cin>>T;
for(int i=0;i<T;i++)
{
string n; // number of nodes
cin>>n;
int N=stoi(n);
map<int,vector<int>> mapof;
for(int i=0;i<N;i++)
{
string ste;
getline(cin,ste);
cout<<" str : "<<ste<<endl;
}
}
vector<vector<int>> a{{1,3,3,4,4,4},{1,3,3,4,4,4},{1,3,3,4,4,4},{1,3,3,4,4,4},{1,3,3,4,4,4},{1,3,3,4,4,4}};
vector<vector<int>> b(a.size(),vector<int>(a.size(),0));
for(int i=0;i<b.size();i++)
{
for(int h=0;h<b[i].size();h++)
{
b[i][h]=a[h][i];
}
}
for(int i=0;i<b.size();i++)
{
for(int h=0;h<b[i].size();h++)
{
cout<<b[i][h]<<" ";
}
cout<<endl;
}
string str;
str.append("abc");
int a1 =100;
string st;
st= to_string(a1);
int a2;
a2= stoi(st);
priority_queue<int> max_heap;
priority_queue<int,vector<int>,greater<int>> min_heap;
max_heap.top();
if(!max_heap.empty())
{
binary_search()
}
return 0;
}