Submission #94694

# Submission time Handle Problem Language Result Execution time Memory
94694 2019-01-22T20:10:48 Z Rouge_Hugo medians (balkan11_medians) C++14
0 / 100
2 ms 504 KB
#include <bits/stdc++.h>
using namespace std;
int re=0;
vector<char>v;
int main()
{ios_base::sync_with_stdio(false);
cin.tie(NULL);

string s;cin>>s;
int n=s.size();
int r=-1;
for(int i=0;i<n;i++)
{
	if(r<0||i==0||s[i]!=v[r])
	{
		v.push_back(s[i]);
		r++;
		
	}
	else {
		v.pop_back();
		re=1-re;
		r--;
	}
}
if (re==0)
{
	cout<<"No";return 0;
}
cout<<"Yes";
}
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Expected integer, but "No" found
2 Incorrect 2 ms 376 KB Expected integer, but "No" found
3 Incorrect 2 ms 376 KB Expected integer, but "No" found
4 Incorrect 2 ms 376 KB Expected integer, but "No" found
5 Incorrect 2 ms 256 KB Expected integer, but "No" found
6 Incorrect 2 ms 376 KB Expected integer, but "No" found
7 Incorrect 2 ms 376 KB Expected integer, but "No" found
8 Incorrect 2 ms 376 KB Expected integer, but "No" found
9 Incorrect 2 ms 376 KB Expected integer, but "No" found
10 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
11 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
12 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
13 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
2 Incorrect 2 ms 380 KB Expected integer, but "Yes" found
3 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
4 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
5 Incorrect 2 ms 376 KB Expected integer, but "Yes" found
6 Incorrect 2 ms 504 KB Expected integer, but "Yes" found
7 Incorrect 2 ms 376 KB Expected integer, but "No" found