Skip to content

Instantly share code, notes, and snippets.

@devkhan
Created November 5, 2015 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devkhan/d6d8cebd5ed768c12101 to your computer and use it in GitHub Desktop.
Save devkhan/d6d8cebd5ed768c12101 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <vector>
using namespace std;
int main(int argc, char const *argv[])
{
int n, m;
int **nm;
int *s, *q;
int min=0, max=0;
string tmp;
cin>>n>>m;
s = new int[n];
q = new int[m];
cin>>s;
cin>>q;
nm = new int[n][m];
for (int i = 0; i < n; ++i)
{
cin >> tmp;
for (int j = 0; j < tmp.length() ; ++j)
{
nm[i][j]= tmp[j]=='Y' ? 1 : 0;
min
}
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment