| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1353612 | ezzzay | Toxic Gene 2 (NOI24_toxic) | C++20 | 6 ms | 416 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+j);
}
}
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);
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
