# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
775958 | vjudge1 | Awesome Arrowland Adventure (eJOI19_adventure) | C++17 | 1 ms | 324 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
#define lalala ios_base::sync_with_stdio(false);cin.tie(NULL);
#define endl "\n"
#define ll long long
#define pb push_back
#define N 2000005
int main(){
lalala;
int n,m;cin>>n>>m;
int yes=0;
ll int w,e,no;w=e=no=0;
for(int i=0;i<n;i++){
string s;cin>>s;
for(int j=0;j<s.size();j++){
if(s[j]=='E')continue;
else {
if(j!=m-1)yes=1;
}
}
}
if(yes){
cout<<-1<<endl;
return 0;
}
ll int ans=0;
ans=e;
cout<<ans<<endl;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |