QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#553090 | #7562. Except One | ucup-team1231# | WA | 0ms | 3816kb | C++14 | 807b | 2024-09-08 08:13:39 | 2024-09-08 08:13:39 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
struct state {
vector<int> vec[2][2];
state(char S[]) {
for(int i = 0; i < 2; i++)
for(int j = 0; j < 2; j++)
vec[i][j] = vector<int>{0, 0, 0};
for(int i = 0; i < 2; i ++) {
char ch = i == 0 ? 'R' : 'B';
if(S[1] == ch) continue;
if(S[0] != 'Y' && S[2] != 'Y') vec[0][0][1]++;
if(S[0] != 'Y' && S[2] != 'P') vec[0][1][1 + i]++;
if(S[0] != 'P' && S[2] != 'Y') vec[1][0][1 - i]++;
if(S[0] != 'P' && S[2] != 'P') vec[1][1][1]++;
}
}
};
state merge(const state& A, const state& B) {
}
state calc(int l, int r) {
}
int n;
char S[100005];
int main() {
scanf("%d%s", &n, S);
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3816kb
input:
7 5 3
output:
result:
wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements