-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2d_array.cpp
More file actions
56 lines (48 loc) · 1.22 KB
/
2d_array.cpp
File metadata and controls
56 lines (48 loc) · 1.22 KB
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
#include<bits/stdc++.h>
using namespace std;
/*int arr[4][5];
for (int i=0;i<4;i++){
for(int j=0;j<5;j++){
int x;
cin>>x;
arr[i][j]=x;
}
}
for(int y=0;y<4;y++){
for(int z=0;z<5;z++){
cout<<arr[y][z]<<" ";
}cout<<endl;
}
return 0;*/
int main(){
/*int n,m;
cin>>n>>m;
char arr[n][m];
for (int i=0;i<n;i++){
for(int j=0;j<m;j++){
char s;
cin>>s;
arr[i][j]=s;
}
}
int ch=0;
for (int y=0;y<n;y++){
for(int z=0;z<m;z++){
char s1=arr[y][z];
char s2=arr[y][z+1];
char s3='B';
if (s1.compare(s3)==0 && s2.compare(s3)==0){
cout<<y+1<<z+1;
ch=1;
break;
}else if(s1.compare(s3)==0 && s2.compare(s3)!=0){
cout<<y<<z;
ch=1;
break;
}
}if (ch==1){
break;
}
}
return 0;*/
}