| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1353608 | ezzzay | Toxic Gene 2 (NOI24_toxic) | C++20 | 0 ms | 0 KiB |
#include "toxic.h"
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
void determine_type(int n) {
vector<char>ans(n);
for(int i=0;i<n;i++){
ans[i]='R';
}
for(int i=0;i<n;i+=8){
vector<int>vc;
for(int j=0;j<8;j++){
if(i+j<n){
for(int h=0;h<(1<<j);h++)vc.pb(i);
}
}
vector<int>p=query_machine(vc);
int msk=p.back();
for(int j=0;j<8;j++){
if(msk& (1<<j)){
ans[i+j]='T';
}
}
}
answer_type(ans);
}
int main(){
}
