Submission #448028

# Submission time Handle Problem Language Result Execution time Memory
448028 2021-07-28T14:31:48 Z bigo Awesome Arrowland Adventure (eJOI19_adventure) C++14
0 / 100
0 ms 204 KB
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
typedef unsigned long long ll;
int main() {
	int n, m;
	cin >> m >> n;
	vector<char>vec(m);
	for (int i = 0; i < m; i++) {
		cin >> vec[i];
	}
	bool flag = true;
	for (int i = 0; i < m - 1; i++) {
		if (vec[i] == 'X') {
			cout << -1;
			flag = false;
		}
	}
	if (flag)
		cout << 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 204 KB Output isn't correct
2 Halted 0 ms 0 KB -