# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
446738 | 2021-07-23T07:50:55 Z | fuad27 | Awesome Arrowland Adventure (eJOI19_adventure) | C++14 | 0 ms | 0 KB |
#include<bits/stdc++.h> using namespace std; int main () { int n, m, s; cin>>n>>m>>s; for(int i=0;i<s.size()-1;i++){ if(s[i]=='X'){ cout<<-1<<endl; return 0; } } cout<<0<<endl; }