Advertisement
Korotkodul

snark F

Jan 9th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <vector>
  4. #include <queue>
  5. #include <algorithm>
  6. #include <string>
  7. #include <stack>
  8. #include <set>
  9. #include <map>
  10. #define pii pair <int,int>
  11. using namespace std;
  12. using ll = long long;
  13. using ld = long double;
  14. void cv(vector <int> &v){
  15. for (auto x: v) cout<<x<<' ';
  16. cout<<"\n";
  17. }
  18.  
  19. void cvl(vector <ll> &v){
  20. for (auto x: v) cout<<x<<' ';
  21. cout<<"\n";
  22. }
  23.  
  24.  
  25. void cvv(vector <vector <int> > &v){
  26. for (auto x: v) cv(x);
  27. cout<<"\n";
  28. }
  29.  
  30. void cc(vector <char> v){
  31. for (char x: v) cout<<x;
  32. cout<<"\n\n";
  33. }
  34.  
  35. int main()
  36. {
  37. ios::sync_with_stdio(0);
  38. cin.tie(0);
  39. cout.tie(0);
  40. int n,m; cin>>n>>m;
  41. vector <bool> chk(n, 1), gn(n, 0);
  42. for (int i = 0; i < n;++i){
  43. char act; cin>>act;
  44. vector <char> now(n);
  45. for (int j =0;j<m;++j){
  46. char x;// cin>>x;
  47. //if (x == '0') now[j] = 0;
  48. //else now[j] = 1;
  49. cin>>now[j];
  50. }
  51. cout<<"act = "<<act<<"\n";
  52. cout<<"now\n";
  53. cc(now);
  54. if (act == '+'){
  55. continue;
  56. }
  57. else{
  58. continue;
  59. }
  60. }
  61. }
  62.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement