# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
934362 | browntoad | Toxic Gene (NOI23_toxic) | C++17 | 0 ms | 344 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "toxic.h"
using namespace std;
void determine_type(int n){
vector<int> T, N, S;
int tid = -1;
for (int i = 1; i <= n; i++){
int ret = query_sample({i});
if (ret == 0){
tid = i;
answer_type(i, 'T');
}
else T.push_back(i);
}
for (int toad:T){
int ret = query_sample({toad, tid});
if (ret == 0){
answer_type(toad, 'N');
}
else answer_type(toad, 'S');
}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |