답안 #94694

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
94694 2019-01-22T20:10:48 Z Rouge_Hugo 중앙값 배열 (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";
}
# 결과 실행 시간 메모리 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
# 결과 실행 시간 메모리 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