QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#83936 | #5647. Another Wine Tasting Event | lc174 | WA | 3ms | 3700kb | C++14 | 259b | 2023-03-04 14:53:23 | 2023-03-04 14:53:26 |
Judging History
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");
}
详细
Test #1:
score: 0
Wrong Answer
time: 3ms
memory: 3700kb
input:
5 RWWRRRWWW
output:
1
result:
wrong answer Not enough intervals