-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodarr
More file actions
46 lines (31 loc) · 723 Bytes
/
modarr
File metadata and controls
46 lines (31 loc) · 723 Bytes
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
#include <bits/stdc++.h>
using namespace std;
int bs()
int main(){
//leemos a que es el numero de numeros q tiene el v
//b lo tenemos pa meterselo al vector
//leemos m que sera el numero de instrucciones y leemos las instrucciones en m1 para meterla al v de char
int a,b,m;
char m1;
vector <int> v;
vector <char>ins;
cin>>a;
for(int i=0; i<a; i++){
cin>>b;
v.push_back(b);
}
/*for(auto i:v){
cout<<i<<" ";
}*/
cin>>m;
for(int j=0; j<(m*2); j++){
cin>>m1;
ins.push_back(m1);
}
for(auto i:ins){
if(i=='c'){
cout<<"si";
}
}
return 0;
}