#include "Anna.h"
#include<bits/stdc++.h>
using namespace std;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
void Anna(int n, vector<char>T) {
vector<int>P(n);
int akt=0;
rep(i, n) if(T[i]=='X'+akt) {
P[i]=1;
akt=(akt+1)%3;
}
rep(i, n) Send(P[i]);
}
#include "Bruno.h"
#include<bits/stdc++.h>
using namespace std;
#define rep(a, b) for(int a = 0; a < (b); ++a)
#define st first
#define nd second
#define pb push_back
#define all(a) a.begin(), a.end()
void Bruno(int n, int m, vector<int>T) {
rep(i, n) if(!T[i]) Remove(i);
int akt=0;
rep(i, n) if(T[i]) {
akt=(akt+1)%3;
if(akt==2) Remove(i);
}
akt=0;
rep(i, n) if(T[i]) {
akt=(akt+1)%3;
if(akt!=2) Remove(i);
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
780 KB |
Wrong Answer [6] |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
39 ms |
8184 KB |
Wrong Answer [6] |
2 |
Halted |
0 ms |
0 KB |
- |