QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83936#5647. Another Wine Tasting Eventlc174WA 3ms3700kbC++14259b2023-03-04 14:53:232023-03-04 14:53:26

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-04 14:53:26]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:3700kb
  • [2023-03-04 14:53:23]
  • 提交

answer

#include<iostream>
#include<cstdio>
#include<vector>

using namespace std;

int n,cnt;
char str[2000000];
vector<int> vec;

int main(){
	scanf("%d",&n);
	scanf("%s",str+1);
	for(int i=1;i<n<<1;++i)if(str[i]=='W')++cnt;
	printf(cnt<n?"0":"1");
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 3700kb

input:

5
RWWRRRWWW

output:

1

result:

wrong answer Not enough intervals