QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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");
}
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