Submission #988405

# Submission time Handle Problem Language Result Execution time Memory
988405 2024-05-24T15:52:16 Z cnn008 Rarest Insects (IOI22_insects) C++17
0 / 100
1 ms 344 KB
#include <bits/stdc++.h>
 
#include "insects.h"
using namespace std;
 
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
set<int> inside;
map<int, set<int>> states;
int D = 0;
vector<int> a;
 
void move_in(int x){
    if(inside.count(x)) return;
    move_inside(a[x]);
    inside.insert(x);
}
 
void move_out(int x){
    if(!inside.count(x)) return;
    move_outside(a[x]);
    inside.erase(x);
}
 
int min_cardinality(int N) {
   	return 1;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Wrong answer.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 344 KB Wrong answer.
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 344 KB Output is correct
2 Incorrect 1 ms 344 KB Wrong answer.
3 Halted 0 ms 0 KB -