Created
November 5, 2015 13:01
-
-
Save devkhan/d6d8cebd5ed768c12101 to your computer and use it in GitHub Desktop.
HackerRank Contest https://www.hackerrank.com/contests/snapdeal-codesprint/challenges/cycling
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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