Submission #1220972

#TimeUsernameProblemLanguageResultExecution timeMemory
1220972nikulidHieroglyphs (IOI24_hieroglyphs)C++20
3 / 100
18 ms1984 KiB
#include "hieroglyphs.h"
#include <vector>

/*
	
	{ 0, 1, 2, 3, 4 }
	{ 4, 1, 3, 2, 0 }

	

*/

std::vector<int> ucs(std::vector<int> A, std::vector<int> B) {
	// is this the easiest question ever? (no)
	int n=A.size();
	if(n != (int)B.size()) return std::vector<int>(0); // give up

	for(int i=0; i<n; i++){
		if(A[i] != B[i]){
			return std::vector<int>(1, -1); // give up
		}
	}
	return A;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...