# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
761045 | Khizri | Rarest Insects (IOI22_insects) | C++17 | 52 ms | 476 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 "insects.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define F first
#define S second
#define INF 1e18
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define pii pair<int,int>
#define pll pair<ll,ll>
#define OK cout<<"Ok"<<endl;
#define MOD (ll)(1e9+7)
#define endl "\n"
const int mxn=2e3+5;
int sz,n,cnt,color[mxn],color2[mxn];
set<int>ST;
bool check(int k){
if(k==1) return 1;
set<int>st;
st=ST;
vector<int>vt;
for(int i=0;i<n;i++){
vt.pb(i);
}
unsigned seed = std::chrono::system_clock::now().time_since_epoch().count();
shuffle(vt.begin(),vt.end(),default_random_engine(seed));
memset(color2,0,sizeof(color2));
for(int id=0;id<n;id++){
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |