Submission #993890

# Submission time Handle Problem Language Result Execution time Memory
993890 2024-06-06T18:26:15 Z Lib September (APIO24_september) C++17
0 / 100
9 ms 21336 KB
#include <bits/stdc++.h>
#include "september.h"
using namespace std;
long long xorhash[6];
vector <set <int> > ShitPar;
long long RemChild[10][500003];
int solve(int n, int m, vector<int> Par, vector <vector<int> > Record){
	int ans=0;
	for(int i=0;i<n;i++){
		for(int k=0;k<5;k++){
		RemChild[k][i]=0;
		}
	}
	for(int i=1;i<n;i++){
		for(int k=0;k<m;k++){
			RemChild[k][i]++;
		}
	}
	ShitPar.clear();
	for(int i=0;i<m;i++){
		xorhash[i]=463222221001217544;	
	}
	for(int i=n-2;i>=0;i--){
		for(int k=0;i<m;k++){
			RemChild[k][Par[Record[k][i]]]--;
			if(!RemChild[k][Par[Record[k][i]]]){
				ShitPar[k].erase(Par[Record[k][i]]);
			}
			if(RemChild[k][Record[k][i]]){
				ShitPar[k].insert(Record[k][i]);
			}
		}
	}
	return ans;
}
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 8 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 8 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 8 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 8 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 9 ms 21336 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -